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)
11 db = event.target.result
12 store = db.createObjectStore('store')
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
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