OLD | NEW |
1 Test IndexedDB's IDBCursor.continue() with a key parameter. | 1 Test IndexedDB's IDBCursor.continue() with a key parameter. |
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-continue.html" | 6 dbname = "cursor-continue.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 db.createObjectStore('someObjectStore') | 9 db.createObjectStore('someObjectStore') |
12 objectStore.createIndex('someIndex', 'x') | 10 objectStore.createIndex('someIndex', 'x') |
13 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) | 11 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) |
14 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) | 12 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) |
15 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) | 13 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) |
16 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) | 14 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) |
17 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) | 15 objectStore.add({'x': testData[nextToAdd]}, nextToAdd) |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 Exception message: Failed to execute 'continue' on 'IDBCursor': The parameter is
greater than or equal to this cursor's position. | 134 Exception message: Failed to execute 'continue' on 'IDBCursor': The parameter is
greater than or equal to this cursor's position. |
137 Expecting exception from cursor.continue() | 135 Expecting exception from cursor.continue() |
138 PASS Exception was thrown. | 136 PASS Exception was thrown. |
139 PASS code is 0 | 137 PASS code is 0 |
140 PASS ename is 'TransactionInactiveError' | 138 PASS ename is 'TransactionInactiveError' |
141 Exception message: Failed to execute 'continue' on 'IDBCursor': The transaction
has finished. | 139 Exception message: Failed to execute 'continue' on 'IDBCursor': The transaction
has finished. |
142 PASS successfullyParsed is true | 140 PASS successfullyParsed is true |
143 | 141 |
144 TEST COMPLETE | 142 TEST COMPLETE |
145 | 143 |
OLD | NEW |