Home | History | Annotate | Download | only in indexeddb
      1 Verify that queuing up several commands works (and they all fire).
      2 
      3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
      4 
      5 
      6 webkitIndexedDB.open('queued-commands')
      7 db = event.target.result
      8 db.setVersion('new version')
      9 setVersionSuccess():
     10 trans = event.target.result
     11 PASS trans !== null is true
     12 Deleted all object stores.
     13 db.createObjectStore('storeName')
     14 store.createIndex('indexName', 'x')
     15 store.add({x: 'value', y: 'zzz'}, 'key')
     16 store.add({x: 'value2', y: 'zzz2'}, 'key2')
     17 store.put({x: 'valu2', y: 'zz2'}, 'ky2')
     18 PASS 0 is 0
     19 PASS 1 is 1
     20 PASS 2 is 2
     21 PASS successfullyParsed is true
     22 
     23 TEST COMPLETE
     24 
     25