blob: 0574bbbb53a3b9cd9bfc57f85ab53da8f8b29142 [file] [log] [blame]
if (this.importScripts) {
importScripts('../../../resources/js-test.js');
importScripts('shared.js');
}
description("Test IndexedDB object store required arguments");
indexedDBTest(prepareDatabase);
function prepareDatabase()
{
db = event.target.result;
event.target.transaction.onabort = unexpectedAbortCallback;
objectStore = evalAndLog("objectStore = db.createObjectStore('foo');");
shouldThrow("objectStore.put();");
shouldThrow("objectStore.add();");
shouldThrow("objectStore.delete();");
shouldThrow("objectStore.get();");
shouldThrow("objectStore.createIndex();");
shouldThrow("objectStore.createIndex('foo');");
shouldThrow("objectStore.index();");
shouldThrow("objectStore.deleteIndex();");
finishJSTest();
}