OLD | NEW |
1 Test IndexedDB keys ordering and readback from cursors. | 1 Test IndexedDB keys ordering and readback from cursors. |
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-reverse-bug.html" | 6 dbname = "cursor-reverse-bug.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 store = db.createObjectStore('store') | 9 store = db.createObjectStore('store') |
12 store.createIndex('index', '') | 10 store.createIndex('index', '') |
13 | 11 |
14 populating store... | 12 populating store... |
15 trans = db.transaction('store', 'readwrite') | 13 trans = db.transaction('store', 'readwrite') |
16 store = trans.objectStore('store'); | 14 store = trans.objectStore('store'); |
17 store.put(1, 1) | 15 store.put(1, 1) |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 PASS cursor.primaryKey is test.expected | 90 PASS cursor.primaryKey is test.expected |
93 cursor = event.target.result | 91 cursor = event.target.result |
94 PASS cursor.key is test.expected | 92 PASS cursor.key is test.expected |
95 PASS cursor.primaryKey is test.expected | 93 PASS cursor.primaryKey is test.expected |
96 testCursor() | 94 testCursor() |
97 No more tests. | 95 No more tests. |
98 PASS successfullyParsed is true | 96 PASS successfullyParsed is true |
99 | 97 |
100 TEST COMPLETE | 98 TEST COMPLETE |
101 | 99 |
OLD | NEW |