1 Regression test for http://crbug.com/108071
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "prefetch-bugfix-108071.html"
7 indexedDB.deleteDatabase(dbname)
9 objectStore = db.createObjectStore('store', {keyPath: 'id'})
13 objectStore.add({id: 0, name: "Alpha"})
14 objectStore.add({id: 1, name: "Bravo"})
15 objectStore.add({id: 2, name: "Charlie"})
16 objectStore.add({id: 3, name: "Delta"})
17 objectStore.add({id: 4, name: "Echo"})
19 iterateAndDeleteFirstElement():
20 trans = db.transaction(['store'], 'readwrite')
21 trans.objectStore('store').openCursor()
23 trans.objectStore('store').delete(0)
31 objectStore.add({id: 0, name: "Alpha"})
32 objectStore.add({id: 1, name: "Bravo"})
33 objectStore.add({id: 2, name: "Charlie"})
34 objectStore.add({id: 3, name: "Delta"})
35 objectStore.add({id: 4, name: "Echo"})
38 trans.objectStore('store').openCursor()
44 PASS Transaction aborted as expected
45 PASS successfullyParsed is true