chromium/third_party/blink/web_tests/storage/indexeddb/resources/open-twice.js

if (this.importScripts) {
    importScripts('../../../resources/js-test.js');
    importScripts('shared.js');
}

description("Test opening twice");

function test()
{
    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();