Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / resources / objectStore-required-arguments.js
blob0574bbbb53a3b9cd9bfc57f85ab53da8f8b29142
1 if (this.importScripts) {
2     importScripts('../../../resources/js-test.js');
3     importScripts('shared.js');
6 description("Test IndexedDB object store required arguments");
8 indexedDBTest(prepareDatabase);
9 function prepareDatabase()
11     db = event.target.result;
12     event.target.transaction.onabort = unexpectedAbortCallback;
14     objectStore = evalAndLog("objectStore = db.createObjectStore('foo');");
15     shouldThrow("objectStore.put();");
16     shouldThrow("objectStore.add();");
17     shouldThrow("objectStore.delete();");
18     shouldThrow("objectStore.get();");
19     shouldThrow("objectStore.createIndex();");
20     shouldThrow("objectStore.createIndex('foo');");
21     shouldThrow("objectStore.index();");
22     shouldThrow("objectStore.deleteIndex();");
23     finishJSTest();