Home | History | Annotate | Download | only in indexeddb
      1 Test IndexedDB's webkitIDBObjectStore.deleteObjectStore().
      2 
      3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
      4 
      5 
      6 webkitIndexedDB.open('objectstore-removeobjectstore')
      7 db = event.target.result
      8 db.setVersion('new version')
      9 trans = event.target.result
     10 PASS trans !== null is true
     11 Deleted all object stores.
     12 store = db.createObjectStore('storeName', null)
     13 store.createIndex('indexName', '')
     14 PASS store.indexNames.contains('indexName') is true
     15 store.add('value', 'key')
     16 db.transaction({mode: webkitIDBTransaction.READ_WRITE})
     17 store = transaction.objectStore('storeName')
     18 store.get('key')
     19 PASS event.target.result is "value"
     20 db.setVersion('new version')
     21 trans = event.target.result
     22 PASS trans !== null is true
     23 db.deleteObjectStore('storeName')
     24 db.createObjectStore('storeName', null)
     25 db.transaction({mode: webkitIDBTransaction.READ_WRITE})
     26 store = transaction.objectStore('storeName')
     27 store.get('key')
     28 PASS event.target.result is undefined
     29 PASS event.target.source.indexNames.contains('indexName') is false
     30 PASS successfullyParsed is true
     31 
     32 TEST COMPLETE
     33 
     34