Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / resources / open-twice.js
blob8f0bcfc7c60b349c666ec3ae388a52f3cd7c3c3b
1 if (this.importScripts) {
2     importScripts('../../../resources/js-test.js');
3     importScripts('shared.js');
6 description("Test opening twice");
8 function test()
10     request = evalAndLog("indexedDB.open('open-twice1')");
11     request.onerror = unexpectedErrorCallback;
12     request.onblocked = unexpectedBlockedCallback;
13     request.onsuccess = openAnother;
16 function openAnother()
18     request = evalAndLog("indexedDB.open('open-twice2')");
19     request.onerror = unexpectedErrorCallback;
20     request.onblocked = unexpectedBlockedCallback;
21     request.onsuccess = finishJSTest;
24 test();