| 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; | |
| 7 | |
| 8 dbname = "exceptions.html" | 6 dbname = "exceptions.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 store = db.createObjectStore('store') | 9 store = db.createObjectStore('store') |
| 12 index = store.createIndex('index', 'id') | 10 index = store.createIndex('index', 'id') |
| 13 store.put({id: 'a'}, 1) | 11 store.put({id: 'a'}, 1) |
| 14 store.put({id: 'b'}, 2) | 12 store.put({id: 'b'}, 2) |
| 15 store.put({id: 'c'}, 3) | 13 store.put({id: 'c'}, 3) |
| 16 store.put({id: 'd'}, 4) | 14 store.put({id: 'd'}, 4) |
| 17 store.put({id: 'e'}, 5) | 15 store.put({id: 'e'}, 5) |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 If the requested object store is not in this transaction's scope. | 620 If the requested object store is not in this transaction's scope. |
| 623 Expecting exception from db.transaction('store').objectStore('otherStore') | 621 Expecting exception from db.transaction('store').objectStore('otherStore') |
| 624 PASS Exception was thrown. | 622 PASS Exception was thrown. |
| 625 PASS code is DOMException.NOT_FOUND_ERR | 623 PASS code is DOMException.NOT_FOUND_ERR |
| 626 PASS ename is 'NotFoundError' | 624 PASS ename is 'NotFoundError' |
| 627 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec
ified object store was not found. | 625 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec
ified object store was not found. |
| 628 PASS successfullyParsed is true | 626 PASS successfullyParsed is true |
| 629 | 627 |
| 630 TEST COMPLETE | 628 TEST COMPLETE |
| 631 | 629 |
| OLD | NEW |