1 Test IndexedDB's IDBObjectStore.clear().
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "objectstore-clear.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 otherStore = db.createObjectStore('otherStoreName', null)
14 otherStore.add('value', 'key')
16 PASS event.target.result is undefined.
18 PASS event.target.result is null
19 index = store.index('indexName')
21 openKeyCursorSuccess():
22 PASS event.target.result is null
23 db.transaction(['otherStoreName'])
24 otherStore = transaction.objectStore('otherStoreName')
26 PASS event.target.result is "value"
27 PASS successfullyParsed is true