blob: 3e647221b9f0f0c4f8faaec4997aff00f375768d [file] [log] [blame]
if (this.importScripts) {
importScripts('../../../resources/js-test.js');
importScripts('shared.js');
}
description("Test opening twice");
function test()
{
removeVendorPrefixes();
request = evalAndLog("indexedDB.open('open-twice1')");
request.onerror = unexpectedErrorCallback;
request.onblocked = unexpectedBlockedCallback;
request.onsuccess = openAnother;
};
function openAnother()
{
request = evalAndLog("indexedDB.open('open-twice2')");
request.onerror = unexpectedErrorCallback;
request.onblocked = unexpectedBlockedCallback;
request.onsuccess = finishJSTest;
}
test();