Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / index-unique-expected.txt
blob8839b000f859b20703073fe032127405fe1a0c6b
1 Test features of IndexedDB's unique indices.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "index-unique.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
9 db.createObjectStore('store')
10 store.createIndex('index', 'x', {unique: true})
11 setVersionCompleted():
12 transaction = db.transaction(['store'], 'readwrite')
13 transaction.objectStore('store').put({x: 1}, 'foo')
14 addMoreData():
15 transaction.objectStore('store').put({x: 1}, 'bar')
16 addMoreDataFailed():
17 event.preventDefault()
18 PASS event.target.error.name is 'ConstraintError'
19 transaction.objectStore('store').put({x: 0}, 'foo')
20 changeDataSuccess():
21 transaction.objectStore('store').index('index').openCursor(IDBKeyRange.lowerBound(1))
22 cursorSuccess():
23 PASS event.target.result is null
24 transaction.objectStore('store').index('index').openKeyCursor(IDBKeyRange.lowerBound(1))
25 keyCursorSuccess():
26 PASS event.target.result is null
27 transaction.objectStore('store').put({x: 1}, 'bar')
28 addMoreDataSucces():
29 transaction.objectStore('store').delete('bar')
30 deleteSuccess():
31 transaction.objectStore('store').put({x: 1}, 'baz')
32 finalAddSuccess():
33 transaction.objectStore('store').put({x: 1}, 'baz')
34 PASS successfullyParsed is true
36 TEST COMPLETE