1 Test IndexedDB cursor iterates correctly over values added during iteration.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "cursor-added-bug.html"
7 indexedDB.deleteDatabase(dbname)
9 trans = event.target.transaction
10 PASS trans is non-null.
11 objectStore = db.createObjectStore('test')
15 trans = db.transaction(['test'], 'readwrite')
16 trans.objectStore('test').openCursor()
17 PASS event.target.result.key is 1
18 trans.objectStore('test').add(6, 6)
19 event.target.result.continue()
20 PASS event.target.result.key is 2
21 trans.objectStore('test').add(5, 5)
22 event.target.result.continue()
23 PASS event.target.result.key is 3
24 trans.objectStore('test').add(4, 4)
25 event.target.result.continue()
26 PASS event.target.result.key is 4
27 event.target.result.continue()
28 PASS event.target.result.key is 5
29 event.target.result.continue()
30 PASS event.target.result.key is 6
31 event.target.result.continue()
33 PASS successfullyParsed is true