1 if (this.importScripts) {
2 importScripts('../../../resources/js-test.js');
3 importScripts('shared.js');
6 description("Test opening twice");
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;