1 Test IndexedDB's basics.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "createIndex-after-failure.html"
7 indexedDB.deleteDatabase(dbname)
9 objectStore.createIndex('index', 'key', {unique: true})
10 objectStore.deleteIndex('index')
11 Expecting exception from objectStore.deleteIndex('index')
12 PASS Exception was thrown.
13 PASS code is DOMException.NOT_FOUND_ERR
14 PASS ename is 'NotFoundError'
15 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The specified index was not found.
16 Now requesting object2
18 deleteIndexAfterGetError()
19 Expecting exception from objectStore.deleteIndex('index')
20 PASS Exception was thrown.
22 PASS ename is 'TransactionInactiveError'
23 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The transaction has finished.
24 Expecting exception from objectStore.deleteIndex('index')
25 PASS Exception was thrown.
27 PASS ename is 'TransactionInactiveError'
28 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The transaction has finished.
29 PASS successfullyParsed is true