Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / transaction-rollback-expected.txt
blob0fbacccf109a3e8cb7cc8100f9c04177f9423d55
1 Test IndexedDB transaction rollback.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "transaction-rollback.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
9 db.createObjectStore('myObjectStore')
10 PASS db.objectStoreNames.length is 1
11 setVersionComplete():
12 transaction = db.transaction(['myObjectStore'], 'readwrite')
13 store = transaction.objectStore('myObjectStore')
14 store.add('rollbackValue', 'rollbackKey123')
15 addSuccess():
16 PASS event.target.result is "rollbackKey123"
17 store.openCursor()
18 openCursorSuccess():
19 cursor = event.target.result
20 abortCallback():
21 Transaction was aborted.
22 transaction = db.transaction(['myObjectStore'], 'readonly')
23 store = transaction.objectStore('myObjectStore')
24 store.get('rollbackKey123')
25 getSuccess():
26 PASS event.target.result is undefined
27 PASS cursor.value is "rollbackValue"
28 PASS successfullyParsed is true
30 TEST COMPLETE