blob: 3c24649ec2118437388c242b3e2831c6021b5599 [file] [log] [blame]
Test IndexedDB index .get() required argument
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
objectStore = db.createObjectStore('foo', { keyPath: 'id', autoIncrement: true });
index = objectStore.createIndex('first', 'first');
PASS index.get(); threw exception TypeError: Not enough arguments.
PASS index.getKey(); threw exception TypeError: Not enough arguments.
PASS successfullyParsed is true
TEST COMPLETE