| OLD | NEW |
| 1 Test IndexedDB's transaction and objectStore calls | 1 Test IndexedDB's transaction and objectStore calls |
| 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 = "transaction-and-objectstore-calls.html" | 8 dbname = "transaction-and-objectstore-calls.html" |
| 9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 PASS Exception was thrown. | 76 PASS Exception was thrown. |
| 77 PASS code is DOMException.NOT_FOUND_ERR | 77 PASS code is DOMException.NOT_FOUND_ERR |
| 78 PASS ename is 'NotFoundError' | 78 PASS ename is 'NotFoundError' |
| 79 Exception message: The specified object store was not found. | 79 Exception message: The specified object store was not found. |
| 80 Expecting exception from trans.objectStore('x') | 80 Expecting exception from trans.objectStore('x') |
| 81 PASS Exception was thrown. | 81 PASS Exception was thrown. |
| 82 PASS code is DOMException.NOT_FOUND_ERR | 82 PASS code is DOMException.NOT_FOUND_ERR |
| 83 PASS ename is 'NotFoundError' | 83 PASS ename is 'NotFoundError' |
| 84 Exception message: The specified object store was not found. | 84 Exception message: The specified object store was not found. |
| 85 | 85 |
| 86 PASS trans = db.transaction() threw exception TypeError: Not enough arguments. | 86 PASS trans = db.transaction() threw exception TypeError: Failed to execute 'tran
saction' on 'IDBDatabase': 1 argument required, but only 0 present.. |
| 87 | 87 |
| 88 Expecting exception from db.transaction(['x']) | 88 Expecting exception from db.transaction(['x']) |
| 89 PASS Exception was thrown. | 89 PASS Exception was thrown. |
| 90 PASS code is DOMException.NOT_FOUND_ERR | 90 PASS code is DOMException.NOT_FOUND_ERR |
| 91 PASS ename is 'NotFoundError' | 91 PASS ename is 'NotFoundError' |
| 92 Exception message: One of the specified object stores was not found. | 92 Exception message: One of the specified object stores was not found. |
| 93 Expecting exception from db.transaction(['x']) | 93 Expecting exception from db.transaction(['x']) |
| 94 PASS Exception was thrown. | 94 PASS Exception was thrown. |
| 95 PASS code is DOMException.NOT_FOUND_ERR | 95 PASS code is DOMException.NOT_FOUND_ERR |
| 96 PASS ename is 'NotFoundError' | 96 PASS ename is 'NotFoundError' |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 Exception message: The transaction has finished. | 159 Exception message: The transaction has finished. |
| 160 Expecting exception from store.index('index') | 160 Expecting exception from store.index('index') |
| 161 PASS Exception was thrown. | 161 PASS Exception was thrown. |
| 162 PASS code is DOMException.INVALID_STATE_ERR | 162 PASS code is DOMException.INVALID_STATE_ERR |
| 163 PASS ename is 'InvalidStateError' | 163 PASS ename is 'InvalidStateError' |
| 164 Exception message: The transaction has finished. | 164 Exception message: The transaction has finished. |
| 165 PASS successfullyParsed is true | 165 PASS successfullyParsed is true |
| 166 | 166 |
| 167 TEST COMPLETE | 167 TEST COMPLETE |
| 168 | 168 |
| OLD | NEW |