| OLD | NEW |
| 1 Test that expected exceptions are thrown per IndexedDB spec. | 1 Test that expected exceptions are thrown per IndexedDB spec. |
| 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; | 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
| 7 | 7 |
| 8 dbname = "exceptions.html" | 8 dbname = "exceptions.html" |
| 9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The param
eter is not a valid key. | 265 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The param
eter is not a valid key. |
| 266 The transaction this IDBObjectStore belongs to is not active. | 266 The transaction this IDBObjectStore belongs to is not active. |
| 267 Expecting exception from storeFromInactiveTransaction.openCursor() | 267 Expecting exception from storeFromInactiveTransaction.openCursor() |
| 268 PASS Exception was thrown. | 268 PASS Exception was thrown. |
| 269 PASS code is 0 | 269 PASS code is 0 |
| 270 PASS ename is 'TransactionInactiveError' | 270 PASS ename is 'TransactionInactiveError' |
| 271 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The trans
action has finished. | 271 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The trans
action has finished. |
| 272 The value for the direction parameter is invalid. | 272 The value for the direction parameter is invalid. |
| 273 Expecting TypeError exception from store.openCursor(0, 'invalid-direction') | 273 Expecting TypeError exception from store.openCursor(0, 'invalid-direction') |
| 274 PASS Exception was thrown. | 274 PASS Exception was thrown. |
| 275 PASS store.openCursor(0, 'invalid-direction') threw TypeError: Failed to execute
'openCursor' on 'IDBObjectStore': The direction provided ('invalid-direction')
is not one of 'next', 'nextunique', 'prev', or 'prevunique'. | 275 PASS store.openCursor(0, 'invalid-direction') threw TypeError: Failed to execute
'openCursor' on 'IDBObjectStore': The provided value 'invalid-direction' is not
a valid enum value of type IDBCursorDirection. |
| 276 | 276 |
| 277 IDBObjectStore.openKeyCursor() | 277 IDBObjectStore.openKeyCursor() |
| 278 If the range parameter is specified but is not a valid key or a key range, this
method throws a DOMException of type DataError. | 278 If the range parameter is specified but is not a valid key or a key range, this
method throws a DOMException of type DataError. |
| 279 Expecting exception from store.openKeyCursor({}) | 279 Expecting exception from store.openKeyCursor({}) |
| 280 PASS Exception was thrown. | 280 PASS Exception was thrown. |
| 281 PASS code is 0 | 281 PASS code is 0 |
| 282 PASS ename is 'DataError' | 282 PASS ename is 'DataError' |
| 283 Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The pa
rameter is not a valid key. | 283 Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The pa
rameter is not a valid key. |
| 284 The transaction this IDBObjectStore belongs to is not active. | 284 The transaction this IDBObjectStore belongs to is not active. |
| 285 Expecting exception from storeFromInactiveTransaction.openKeyCursor() | 285 Expecting exception from storeFromInactiveTransaction.openKeyCursor() |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 If the requested object store is not in this transaction's scope. | 608 If the requested object store is not in this transaction's scope. |
| 609 Expecting exception from db.transaction('store').objectStore('otherStore') | 609 Expecting exception from db.transaction('store').objectStore('otherStore') |
| 610 PASS Exception was thrown. | 610 PASS Exception was thrown. |
| 611 PASS code is DOMException.NOT_FOUND_ERR | 611 PASS code is DOMException.NOT_FOUND_ERR |
| 612 PASS ename is 'NotFoundError' | 612 PASS ename is 'NotFoundError' |
| 613 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec
ified object store was not found. | 613 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec
ified object store was not found. |
| 614 PASS successfullyParsed is true | 614 PASS successfullyParsed is true |
| 615 | 615 |
| 616 TEST COMPLETE | 616 TEST COMPLETE |
| 617 | 617 |
| OLD | NEW |