| OLD | NEW |
| 1 Test that when db.close is called in upgradeneeded, the db is cleaned up on refr
esh. | 1 Test that when db.close is called in upgradeneeded, the db is cleaned up on refr
esh. |
| 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 = "intversion-close-in-upgradeneeded.html" | 8 dbname = "intversion-close-in-upgradeneeded.html" |
| 9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
| 10 request = indexedDB.open(dbname, 7) | 10 request = indexedDB.open(dbname, 7) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 PASS event.target.error.name is 'AbortError' | 25 PASS event.target.error.name is 'AbortError' |
| 26 PASS event.result is undefined | 26 PASS event.result is undefined |
| 27 | 27 |
| 28 Verify that the old connection is unchanged and was closed: | 28 Verify that the old connection is unchanged and was closed: |
| 29 PASS db is non-null. | 29 PASS db is non-null. |
| 30 PASS db.version is 7 | 30 PASS db.version is 7 |
| 31 Expecting exception from db.transaction('os') | 31 Expecting exception from db.transaction('os') |
| 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 PASS successfullyParsed is true | 36 PASS successfullyParsed is true |
| 37 | 37 |
| 38 TEST COMPLETE | 38 TEST COMPLETE |
| 39 | 39 |
| OLD | NEW |