OLD | NEW |
1 Validate the overloads of IDBObjectStore.openCursor(), IDBIndex.openCursor() and
IDBIndex.openKeyCursor(). | 1 Validate the overloads of IDBObjectStore.openCursor(), IDBIndex.openCursor() and
IDBIndex.openKeyCursor(). |
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-overloads.html" | 6 dbname = "cursor-overloads.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 index = store.createIndex('index', 'value') | 10 index = store.createIndex('index', 'value') |
13 store.put({value: 0}, 0) | 11 store.put({value: 0}, 0) |
14 | 12 |
15 verifyOverloads(): | 13 verifyOverloads(): |
16 trans = db.transaction('store') | 14 trans = db.transaction('store') |
17 store = trans.objectStore('store') | 15 store = trans.objectStore('store') |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 index.openKeyCursor(IDBKeyRange.only(0), 'prev') | 143 index.openKeyCursor(IDBKeyRange.only(0), 'prev') |
146 PASS event.target.result is non-null. | 144 PASS event.target.result is non-null. |
147 PASS event.target.result.direction is "prev" | 145 PASS event.target.result.direction is "prev" |
148 index.openKeyCursor(IDBKeyRange.only(0), 'prevunique') | 146 index.openKeyCursor(IDBKeyRange.only(0), 'prevunique') |
149 PASS event.target.result is non-null. | 147 PASS event.target.result is non-null. |
150 PASS event.target.result.direction is "prevunique" | 148 PASS event.target.result.direction is "prevunique" |
151 PASS successfullyParsed is true | 149 PASS successfullyParsed is true |
152 | 150 |
153 TEST COMPLETE | 151 TEST COMPLETE |
154 | 152 |
OLD | NEW |