blob: 2372b7dc763e40ccd97049a2c559ada67607769a [file] [log] [blame]
if (this.importScripts) {
importScripts('../../../fast/js/resources/js-test-pre.js');
importScripts('shared.js');
}
description("Test IndexedDB index .get() required argument");
indexedDBTest(prepareDatabase);
function prepareDatabase()
{
db = event.target.result;
event.target.transaction.onabort = unexpectedAbortCallback;
objectStore = evalAndLog("objectStore = db.createObjectStore('foo', { keyPath: 'id', autoIncrement: true });");
index = evalAndLog("index = objectStore.createIndex('first', 'first');");
shouldThrow("index.get();");
shouldThrow("index.getKey();");
finishJSTest();
}