| 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; | 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
| 7 | 7 |
| 8 dbname = "aborted-versionchange-closes.html" | 8 dbname = "aborted-versionchange-closes.html" |
| 9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname, 1) | 10 indexedDB.open(dbname, 1) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 transaction = event.target.transaction | 25 transaction = event.target.transaction |
| 26 sawTransactionAbort = false | 26 sawTransactionAbort = false |
| 27 | 27 |
| 28 onTransactionAbort(): | 28 onTransactionAbort(): |
| 29 sawTransactionAbort = true | 29 sawTransactionAbort = true |
| 30 creating a transaction should fail because connection is closed: | 30 creating a transaction should fail because connection is closed: |
| 31 Expecting exception from db.transaction('store') | 31 Expecting exception from db.transaction('store') |
| 32 PASS Exception was thrown. | 32 PASS Exception was thrown. |
| 33 PASS code is DOMException.INVALID_STATE_ERR | 33 PASS code is DOMException.INVALID_STATE_ERR |
| 34 PASS ename is 'InvalidStateError' | 34 PASS ename is 'InvalidStateError' |
| 35 Exception message: The database connection is closing. |
| 35 | 36 |
| 36 onOpenError(): | 37 onOpenError(): |
| 37 PASS sawTransactionAbort is true | 38 PASS sawTransactionAbort is true |
| 38 creating a transaction should fail because connection is closed: | 39 creating a transaction should fail because connection is closed: |
| 39 Expecting exception from db.transaction('store') | 40 Expecting exception from db.transaction('store') |
| 40 PASS Exception was thrown. | 41 PASS Exception was thrown. |
| 41 PASS code is DOMException.INVALID_STATE_ERR | 42 PASS code is DOMException.INVALID_STATE_ERR |
| 42 PASS ename is 'InvalidStateError' | 43 PASS ename is 'InvalidStateError' |
| 44 Exception message: The database connection is closing. |
| 43 PASS successfullyParsed is true | 45 PASS successfullyParsed is true |
| 44 | 46 |
| 45 TEST COMPLETE | 47 TEST COMPLETE |
| 46 | 48 |
| OLD | NEW |