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