| 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; | |
| 7 | |
| 8 dbname = "transaction-and-objectstore-calls.html" | 6 dbname = "transaction-and-objectstore-calls.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 db.createObjectStore('a') | 9 db.createObjectStore('a') |
| 12 db.createObjectStore('b') | 10 db.createObjectStore('b') |
| 13 db.createObjectStore('store').createIndex('index', 'some_path') | 11 db.createObjectStore('store').createIndex('index', 'some_path') |
| 14 | 12 |
| 15 trans = db.transaction(['a']) | 13 trans = db.transaction(['a']) |
| 16 trans.objectStore('a') | 14 trans.objectStore('a') |
| 17 Expecting exception from trans.objectStore('b') | 15 Expecting exception from trans.objectStore('b') |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The tran
saction has finished. | 157 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The tran
saction has finished. |
| 160 Expecting exception from store.index('index') | 158 Expecting exception from store.index('index') |
| 161 PASS Exception was thrown. | 159 PASS Exception was thrown. |
| 162 PASS code is DOMException.INVALID_STATE_ERR | 160 PASS code is DOMException.INVALID_STATE_ERR |
| 163 PASS ename is 'InvalidStateError' | 161 PASS ename is 'InvalidStateError' |
| 164 Exception message: Failed to execute 'index' on 'IDBObjectStore': The transactio
n has finished. | 162 Exception message: Failed to execute 'index' on 'IDBObjectStore': The transactio
n has finished. |
| 165 PASS successfullyParsed is true | 163 PASS successfullyParsed is true |
| 166 | 164 |
| 167 TEST COMPLETE | 165 TEST COMPLETE |
| 168 | 166 |
| OLD | NEW |