| OLD | NEW |
| 1 Test IndexedDB's basics. | 1 Test IndexedDB's basics. |
| 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 = "createIndex-after-failure.html" | 6 dbname = "createIndex-after-failure.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 objectStore.createIndex('index', 'key', {unique: true}) | 9 objectStore.createIndex('index', 'key', {unique: true}) |
| 12 objectStore.deleteIndex('index') | 10 objectStore.deleteIndex('index') |
| 13 Expecting exception from objectStore.deleteIndex('index') | 11 Expecting exception from objectStore.deleteIndex('index') |
| 14 PASS Exception was thrown. | 12 PASS Exception was thrown. |
| 15 PASS code is DOMException.NOT_FOUND_ERR | 13 PASS code is DOMException.NOT_FOUND_ERR |
| 16 PASS ename is 'NotFoundError' | 14 PASS ename is 'NotFoundError' |
| 17 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The spec
ified index was not found. | 15 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The spec
ified index was not found. |
| 18 Now requesting object2 | 16 Now requesting object2 |
| 19 now we wait. | 17 now we wait. |
| 20 deleteIndexAfterGetError() | 18 deleteIndexAfterGetError() |
| 21 Expecting exception from objectStore.deleteIndex('index') | 19 Expecting exception from objectStore.deleteIndex('index') |
| 22 PASS Exception was thrown. | 20 PASS Exception was thrown. |
| 23 PASS code is 0 | 21 PASS code is 0 |
| 24 PASS ename is 'TransactionInactiveError' | 22 PASS ename is 'TransactionInactiveError' |
| 25 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The tran
saction has finished. | 23 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The tran
saction has finished. |
| 26 Expecting exception from objectStore.deleteIndex('index') | 24 Expecting exception from objectStore.deleteIndex('index') |
| 27 PASS Exception was thrown. | 25 PASS Exception was thrown. |
| 28 PASS code is 0 | 26 PASS code is 0 |
| 29 PASS ename is 'TransactionInactiveError' | 27 PASS ename is 'TransactionInactiveError' |
| 30 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The tran
saction has finished. | 28 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The tran
saction has finished. |
| 31 PASS successfullyParsed is true | 29 PASS successfullyParsed is true |
| 32 | 30 |
| 33 TEST COMPLETE | 31 TEST COMPLETE |
| 34 | 32 |
| OLD | NEW |