Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / request-continue-abort-expected.txt
blobae6630dc5c6ced61a5b1d2248ebc87686a595d16
1 Regression test for IDBRequest issue calling continue on a cursor then aborting.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "request-continue-abort.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
9 db.createObjectStore('store')
11 testCursor:
12 transaction = db.transaction('store', 'readwrite')
13 store = transaction.objectStore('store')
14 store.add('value1', 'key1')
15 store.add('value2', 'key2')
17 state = 0
18 request = store.openCursor()
20 'success' event fired at request.
21 PASS ++state is 1
22 request.result.continue()
24 'error' event fired at request.
25 PASS ++state is 2
27 'abort' event fired at transaction.
28 PASS ++state is 3
29 PASS successfullyParsed is true
31 TEST COMPLETE