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 Exception message: Failed to execute 'transaction' on 'IDBDatabase': The databas
e connection is closing. |
36 | 36 |
37 onOpenError(): | 37 onOpenError(): |
38 PASS sawTransactionAbort is true | 38 PASS sawTransactionAbort is true |
39 creating a transaction should fail because connection is closed: | 39 creating a transaction should fail because connection is closed: |
40 Expecting exception from db.transaction('store') | 40 Expecting exception from db.transaction('store') |
41 PASS Exception was thrown. | 41 PASS Exception was thrown. |
42 PASS code is DOMException.INVALID_STATE_ERR | 42 PASS code is DOMException.INVALID_STATE_ERR |
43 PASS ename is 'InvalidStateError' | 43 PASS ename is 'InvalidStateError' |
44 Exception message: The database connection is closing. | 44 Exception message: Failed to execute 'transaction' on 'IDBDatabase': The databas
e connection is closing. |
45 PASS successfullyParsed is true | 45 PASS successfullyParsed is true |
46 | 46 |
47 TEST COMPLETE | 47 TEST COMPLETE |
48 | 48 |
OLD | NEW |