Home | History | Annotate | Download | only in indexeddb
      1 Test IndexedDB's createObjectStore's various options
      2 
      3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
      4 
      5 
      6 PASS 'webkitIndexedDB' in window is true
      7 PASS webkitIndexedDB == null is false
      8 webkitIndexedDB.open('create-object-store-options', 'description')
      9 db = event.target.result
     10 request = db.setVersion('version 1')
     11 Deleted all object stores.
     12 db.createObjectStore('a', {keyPath: 'a'})
     13 db.createObjectStore('b')
     14 db.createObjectStore('c', {autoIncrement: true});
     15 trans = db.transaction([], webkitIDBTransaction.READ_WRITE)
     16 PASS trans.mode is webkitIDBTransaction.READ_WRITE
     17 trans.objectStore('a').put({'a': 0})
     18 trans.objectStore('b').put({'a': 0}, 0)
     19 trans.objectStore('a').get(0)
     20 PASS event.target.result.a is {a: 0}
     21 trans.objectStore('b').get(0)
     22 PASS event.target.result.a is {a: 0}
     23 PASS successfullyParsed is true
     24 
     25 TEST COMPLETE
     26 
     27