OLD | NEW |
1 Test IndexedDB cursor iterates correctly over values added during iteration. | 1 Test IndexedDB cursor iterates correctly over values added during iteration. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | |
7 | |
8 dbname = "cursor-added-bug.html" | 6 dbname = "cursor-added-bug.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 trans = event.target.transaction | 9 trans = event.target.transaction |
12 PASS trans is non-null. | 10 PASS trans is non-null. |
13 objectStore = db.createObjectStore('test') | 11 objectStore = db.createObjectStore('test') |
14 objectStore.add(1, 1) | 12 objectStore.add(1, 1) |
15 objectStore.add(2, 2) | 13 objectStore.add(2, 2) |
16 objectStore.add(3, 3) | 14 objectStore.add(3, 3) |
17 trans = db.transaction(['test'], 'readwrite') | 15 trans = db.transaction(['test'], 'readwrite') |
(...skipping 11 matching lines...) Expand all Loading... |
29 event.target.result.continue() | 27 event.target.result.continue() |
30 PASS event.target.result.key is 5 | 28 PASS event.target.result.key is 5 |
31 event.target.result.continue() | 29 event.target.result.continue() |
32 PASS event.target.result.key is 6 | 30 PASS event.target.result.key is 6 |
33 event.target.result.continue() | 31 event.target.result.continue() |
34 PASS counter is 6 | 32 PASS counter is 6 |
35 PASS successfullyParsed is true | 33 PASS successfullyParsed is true |
36 | 34 |
37 TEST COMPLETE | 35 TEST COMPLETE |
38 | 36 |
OLD | NEW |