| 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 PASS code is 0 | 418 PASS code is 0 |
| 419 PASS ename is 'DataError' | 419 PASS ename is 'DataError' |
| 420 Exception message: Failed to execute 'getKey' on 'IDBIndex': The parameter is no
t a valid key. | 420 Exception message: Failed to execute 'getKey' on 'IDBIndex': The parameter is no
t a valid key. |
| 421 The transaction this IDBIndex belongs to is not active. | 421 The transaction this IDBIndex belongs to is not active. |
| 422 Expecting exception from indexFromInactiveTransaction.getKey(0) | 422 Expecting exception from indexFromInactiveTransaction.getKey(0) |
| 423 PASS Exception was thrown. | 423 PASS Exception was thrown. |
| 424 PASS code is 0 | 424 PASS code is 0 |
| 425 PASS ename is 'TransactionInactiveError' | 425 PASS ename is 'TransactionInactiveError' |
| 426 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction has
finished. | 426 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction has
finished. |
| 427 | 427 |
| 428 IDBIndex.getAllKeys() |
| 429 If the key parameter is not a valid key or a key range, this method throws a DOM
Exception of type DataError. |
| 430 Expecting exception from index.getAllKeys({}) |
| 431 PASS Exception was thrown. |
| 432 PASS code is 0 |
| 433 PASS ename is 'DataError' |
| 434 Exception message: Failed to execute 'getAllKeys' on 'IDBIndex': The parameter i
s not a valid key. |
| 435 The transaction this IDBIndex belongs to is not active. |
| 436 Expecting exception from indexFromInactiveTransaction.getAllKeys(0) |
| 437 PASS Exception was thrown. |
| 438 PASS code is 0 |
| 439 PASS ename is 'TransactionInactiveError' |
| 440 Exception message: Failed to execute 'getAllKeys' on 'IDBIndex': The transaction
has finished. |
| 441 |
| 428 IDBIndex.openCursor() | 442 IDBIndex.openCursor() |
| 429 If the range parameter is specified but is not a valid key or a key range, this
method throws a DOMException of type DataError. | 443 If the range parameter is specified but is not a valid key or a key range, this
method throws a DOMException of type DataError. |
| 430 Expecting exception from index.openCursor({}) | 444 Expecting exception from index.openCursor({}) |
| 431 PASS Exception was thrown. | 445 PASS Exception was thrown. |
| 432 PASS code is 0 | 446 PASS code is 0 |
| 433 PASS ename is 'DataError' | 447 PASS ename is 'DataError' |
| 434 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The parameter i
s not a valid key. | 448 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The parameter i
s not a valid key. |
| 435 The transaction this IDBIndex belongs to is not active. | 449 The transaction this IDBIndex belongs to is not active. |
| 436 Expecting exception from indexFromInactiveTransaction.openCursor() | 450 Expecting exception from indexFromInactiveTransaction.openCursor() |
| 437 PASS Exception was thrown. | 451 PASS Exception was thrown. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 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. |
| 595 Expecting exception from db.transaction('store').objectStore('otherStore') | 609 Expecting exception from db.transaction('store').objectStore('otherStore') |
| 596 PASS Exception was thrown. | 610 PASS Exception was thrown. |
| 597 PASS code is DOMException.NOT_FOUND_ERR | 611 PASS code is DOMException.NOT_FOUND_ERR |
| 598 PASS ename is 'NotFoundError' | 612 PASS ename is 'NotFoundError' |
| 599 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. |
| 600 PASS successfullyParsed is true | 614 PASS successfullyParsed is true |
| 601 | 615 |
| 602 TEST COMPLETE | 616 TEST COMPLETE |
| 603 | 617 |
| OLD | NEW |