Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / resources / index-get-key-argument-required.js
blob23338887615c7ee7da363ab8fb4482efc3e34114
1 if (this.importScripts) {
2     importScripts('../../../resources/js-test.js');
3     importScripts('shared.js');
6 description("Test IndexedDB index .get() required argument");
8 indexedDBTest(prepareDatabase);
9 function prepareDatabase()
11     db = event.target.result;
12     event.target.transaction.onabort = unexpectedAbortCallback;
13     objectStore = evalAndLog("objectStore = db.createObjectStore('foo', { keyPath: 'id', autoIncrement: true });");
14     index = evalAndLog("index = objectStore.createIndex('first', 'first');");
15     shouldThrow("index.get();");
16     shouldThrow("index.getKey();");
17     finishJSTest();