1 Test IndexedDB's IDBObjectStore.deleteObjectStore().
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "objectstore-removeobjectstore.html"
7 indexedDB.deleteDatabase(dbname)
9 store = db.createObjectStore('storeName', null)
10 store.createIndex('indexName', '')
11 PASS store.indexNames.contains('indexName') is true
12 store.add('value', 'key')
13 db.transaction(['storeName'])
14 store = transaction.objectStore('storeName')
16 PASS event.target.result is "value"
18 indexedDB.open(dbname, 2)
19 db.deleteObjectStore('storeName')
20 db.createObjectStore('storeName', null)
21 db.transaction(['storeName'])
22 store = transaction.objectStore('storeName')
24 PASS event.target.result is undefined
25 PASS event.target.source.indexNames.contains('indexName') is false
26 PASS successfullyParsed is true