1 Test IndexedDB index .get() required argument
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "index-get-key-argument-required.html"
7 indexedDB.deleteDatabase(dbname)
9 objectStore = db.createObjectStore('foo', { keyPath: 'id', autoIncrement: true });
10 index = objectStore.createIndex('first', 'first');
11 PASS index.get(); threw exception TypeError: Failed to execute 'get' on 'IDBIndex': 1 argument required, but only 0 present..
12 PASS index.getKey(); threw exception TypeError: Failed to execute 'getKey' on 'IDBIndex': 1 argument required, but only 0 present..
13 PASS successfullyParsed is true