Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / request-result-cache-expected.txt
blob55a24730cff947f6275a8be1c195b506393b97ea
1 Verify that a request's result is dirtied when a cursor is continued
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "request-result-cache.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
10 prepareDatabase():
11 db = event.target.result
12 store = db.createObjectStore('store')
14 onOpen():
15 db = event.target.result
16 tx = db.transaction('store')
17 store = tx.objectStore('store')
18 cursorRequest = store.openCursor()
20 cursorRequestSuccess():
21 cursor = cursorRequest.result
22 cursor.continue()
23 Expecting exception from cursorRequest.result
24 PASS Exception was thrown.
25 PASS code is DOMException.INVALID_STATE_ERR
26 PASS ename is 'InvalidStateError'
27 Exception message: Failed to read the 'result' property from 'IDBRequest': The request has not finished.
29 cursorRequestSuccess():
30 PASS successfullyParsed is true
32 TEST COMPLETE