| OLD | NEW |
| 1 Test the basics of IndexedDB's IDBDatabase. | 1 Test the basics of IndexedDB's IDBDatabase. |
| 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 = "database-basics.html" | 6 dbname = "database-basics.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 Test that you can't open a transaction while in a versionchange transaction | 9 Test that you can't open a transaction while in a versionchange transaction |
| 12 Expecting exception from db.transaction("doesntExist") | 10 Expecting exception from db.transaction("doesntExist") |
| 13 PASS Exception was thrown. | 11 PASS Exception was thrown. |
| 14 PASS code is DOMException.INVALID_STATE_ERR | 12 PASS code is DOMException.INVALID_STATE_ERR |
| 15 PASS ename is 'InvalidStateError' | 13 PASS ename is 'InvalidStateError' |
| 16 Exception message: Failed to execute 'transaction' on 'IDBDatabase': A version c
hange transaction is running. | 14 Exception message: Failed to execute 'transaction' on 'IDBDatabase': A version c
hange transaction is running. |
| 17 PASS db.version is 1 | 15 PASS db.version is 1 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 PASS Exception was thrown. | 51 PASS Exception was thrown. |
| 54 PASS code is DOMException.INVALID_STATE_ERR | 52 PASS code is DOMException.INVALID_STATE_ERR |
| 55 PASS ename is 'InvalidStateError' | 53 PASS ename is 'InvalidStateError' |
| 56 Exception message: Failed to execute 'transaction' on 'IDBDatabase': The databas
e connection is closing. | 54 Exception message: Failed to execute 'transaction' on 'IDBDatabase': The databas
e connection is closing. |
| 57 Call twice, make sure it's harmless | 55 Call twice, make sure it's harmless |
| 58 db.close() | 56 db.close() |
| 59 PASS successfullyParsed is true | 57 PASS successfullyParsed is true |
| 60 | 58 |
| 61 TEST COMPLETE | 59 TEST COMPLETE |
| 62 | 60 |
| OLD | NEW |