OLD | NEW |
1 [Worker] Test IndexedDB cursor.advance(). | 1 [Worker] Test IndexedDB cursor.advance(). |
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 Starting worker: resources/cursor-advance.js | 6 Starting worker: resources/cursor-advance.js |
7 [Worker] indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB
|| self.msIndexedDB || self.OIndexedDB; | 7 [Worker] indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB
|| self.msIndexedDB || self.OIndexedDB; |
8 [Worker] | 8 [Worker] |
9 [Worker] dbname = "cursor-advance.js" | 9 [Worker] dbname = "cursor-advance.js" |
10 [Worker] indexedDB.deleteDatabase(dbname) | 10 [Worker] indexedDB.deleteDatabase(dbname) |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 [Worker] | 172 [Worker] |
173 [Worker] prefetch(): | 173 [Worker] prefetch(): |
174 [Worker] testBadAdvance() | 174 [Worker] testBadAdvance() |
175 [Worker] trans = db.transaction(objectStoreName, 'readwrite') | 175 [Worker] trans = db.transaction(objectStoreName, 'readwrite') |
176 [Worker] objectStore = trans.objectStore(objectStoreName) | 176 [Worker] objectStore = trans.objectStore(objectStoreName) |
177 [Worker] request = objectStore.openCursor() | 177 [Worker] request = objectStore.openCursor() |
178 [Worker] | 178 [Worker] |
179 [Worker] advanceBadly(): | 179 [Worker] advanceBadly(): |
180 [Worker] Expecting TypeError exception from cursor.advance(0) | 180 [Worker] Expecting TypeError exception from cursor.advance(0) |
181 PASS [Worker] Exception was thrown. | 181 PASS [Worker] Exception was thrown. |
182 PASS [Worker] cursor.advance(0) threw TypeError: Type error | 182 PASS [Worker] cursor.advance(0) threw TypeError: Failed to execute 'advance' on
'IDBCursor': A count argument with value 0 (zero) was supplied, must be greater
than 0. |
183 [Worker] Expecting TypeError exception from cursor.advance(-1) | 183 [Worker] Expecting TypeError exception from cursor.advance(-1) |
184 PASS [Worker] Exception was thrown. | 184 PASS [Worker] Exception was thrown. |
185 PASS [Worker] cursor.advance(-1) threw TypeError: Type error | 185 PASS [Worker] cursor.advance(-1) threw TypeError: Failed to execute 'advance' on
'IDBCursor': Value is outside the 'unsigned long' value range. |
186 [Worker] Expecting TypeError exception from cursor.advance(0x100000000) | 186 [Worker] Expecting TypeError exception from cursor.advance(0x100000000) |
187 PASS [Worker] Exception was thrown. | 187 PASS [Worker] Exception was thrown. |
188 PASS [Worker] cursor.advance(0x100000000) threw TypeError: Type error | 188 PASS [Worker] cursor.advance(0x100000000) threw TypeError: Failed to execute 'ad
vance' on 'IDBCursor': Value is outside the 'unsigned long' value range. |
189 [Worker] Expecting TypeError exception from cursor.advance(0x20000000000000) | 189 [Worker] Expecting TypeError exception from cursor.advance(0x20000000000000) |
190 PASS [Worker] Exception was thrown. | 190 PASS [Worker] Exception was thrown. |
191 PASS [Worker] cursor.advance(0x20000000000000) threw TypeError: Type error | 191 PASS [Worker] cursor.advance(0x20000000000000) threw TypeError: Failed to execut
e 'advance' on 'IDBCursor': Value is outside the 'unsigned long' value range. |
192 [Worker] | 192 [Worker] |
193 [Worker] testEdges(): | 193 [Worker] testEdges(): |
194 [Worker] trans = db.transaction(objectStoreName, 'readonly') | 194 [Worker] trans = db.transaction(objectStoreName, 'readonly') |
195 [Worker] objectStore = trans.objectStore(objectStoreName) | 195 [Worker] objectStore = trans.objectStore(objectStoreName) |
196 [Worker] request = objectStore.openCursor() | 196 [Worker] request = objectStore.openCursor() |
197 [Worker] | 197 [Worker] |
198 [Worker] onSuccess(): | 198 [Worker] onSuccess(): |
199 [Worker] cursor = event.target.result | 199 [Worker] cursor = event.target.result |
200 PASS [Worker] cursor is non-null. | 200 PASS [Worker] cursor is non-null. |
201 [Worker] cursor.advance(0xffffffff) | 201 [Worker] cursor.advance(0xffffffff) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 [Worker] | 246 [Worker] |
247 [Worker] deleteSecond(): | 247 [Worker] deleteSecond(): |
248 PASS [Worker] expected is "{\"key\":\"237-23-7744\",\"value\":{\"name\":\"Pug\",
\"height\":66,\"weight\":110},\"primaryKey\":\"237-23-7744\"}" | 248 PASS [Worker] expected is "{\"key\":\"237-23-7744\",\"value\":{\"name\":\"Pug\",
\"height\":66,\"weight\":110},\"primaryKey\":\"237-23-7744\"}" |
249 [Worker] cursor.advance(1) | 249 [Worker] cursor.advance(1) |
250 [Worker] | 250 [Worker] |
251 [Worker] deleteSecond(): | 251 [Worker] deleteSecond(): |
252 PASS successfullyParsed is true | 252 PASS successfullyParsed is true |
253 | 253 |
254 TEST COMPLETE | 254 TEST COMPLETE |
255 | 255 |
OLD | NEW |