| OLD | NEW |
| 1 Test that an aborted 'versionchange' transaction closes the connection. | 1 Test that an aborted 'versionchange' transaction closes the connection. |
| 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 = "aborted-versionchange-closes.html" | 6 dbname = "aborted-versionchange-closes.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname, 1) | 8 indexedDB.open(dbname, 1) |
| 11 | 9 |
| 12 prepareDatabase(): | 10 prepareDatabase(): |
| 13 db = event.target.result | 11 db = event.target.result |
| 14 db.createObjectStore('store') | 12 db.createObjectStore('store') |
| 15 | 13 |
| 16 onOpen(): | 14 onOpen(): |
| 17 db = event.target.result | 15 db = event.target.result |
| (...skipping 21 matching lines...) Expand all Loading... |
| 39 creating a transaction should fail because connection is closed: | 37 creating a transaction should fail because connection is closed: |
| 40 Expecting exception from db.transaction('store') | 38 Expecting exception from db.transaction('store') |
| 41 PASS Exception was thrown. | 39 PASS Exception was thrown. |
| 42 PASS code is DOMException.INVALID_STATE_ERR | 40 PASS code is DOMException.INVALID_STATE_ERR |
| 43 PASS ename is 'InvalidStateError' | 41 PASS ename is 'InvalidStateError' |
| 44 Exception message: Failed to execute 'transaction' on 'IDBDatabase': The databas
e connection is closing. | 42 Exception message: Failed to execute 'transaction' on 'IDBDatabase': The databas
e connection is closing. |
| 45 PASS successfullyParsed is true | 43 PASS successfullyParsed is true |
| 46 | 44 |
| 47 TEST COMPLETE | 45 TEST COMPLETE |
| 48 | 46 |
| OLD | NEW |