| OLD | NEW |
| 1 Test IndexedDB deleteIndex method | 1 Test IndexedDB deleteIndex method |
| 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 = "deleteIndex.html" | 6 dbname = "deleteIndex.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 objectStore = db.createObjectStore('foo'); | 9 objectStore = db.createObjectStore('foo'); |
| 12 Expecting exception from objectStore.deleteIndex('first') | 10 Expecting exception from objectStore.deleteIndex('first') |
| 13 PASS Exception was thrown. | 11 PASS Exception was thrown. |
| 14 PASS code is DOMException.NOT_FOUND_ERR | 12 PASS code is DOMException.NOT_FOUND_ERR |
| 15 PASS ename is 'NotFoundError' | 13 PASS ename is 'NotFoundError' |
| 16 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The spec
ified index was not found. | 14 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The spec
ified index was not found. |
| 17 PASS objectStore.deleteIndex() threw exception TypeError: Failed to execute 'del
eteIndex' on 'IDBObjectStore': 1 argument required, but only 0 present.. | 15 PASS objectStore.deleteIndex() threw exception TypeError: Failed to execute 'del
eteIndex' on 'IDBObjectStore': 1 argument required, but only 0 present.. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The d
atabase is not running a version change transaction. | 29 Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The d
atabase is not running a version change transaction. |
| 32 Expecting exception from objectStore.deleteIndex('second') | 30 Expecting exception from objectStore.deleteIndex('second') |
| 33 PASS Exception was thrown. | 31 PASS Exception was thrown. |
| 34 PASS code is 0 | 32 PASS code is 0 |
| 35 PASS ename is 'TransactionInactiveError' | 33 PASS ename is 'TransactionInactiveError' |
| 36 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The tran
saction has finished. | 34 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The tran
saction has finished. |
| 37 PASS successfullyParsed is true | 35 PASS successfullyParsed is true |
| 38 | 36 |
| 39 TEST COMPLETE | 37 TEST COMPLETE |
| 40 | 38 |
| OLD | NEW |