blob: 01d8ca3b869025efed02d93d072d9291ac18663a [file] [log] [blame]
description("This test makes sure that quickly opening the same database multiple times is successful without the backend ASSERTing or crashing.");
function log(msg)
{
document.getElementById("logger").innerHTML += msg + "";
}
function done()
{
finishJSTest();
}
if (testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var req1 = indexedDB.open("testDB");
req1.onerror = function() {
debug("First request unexpected error");
done();
}
var req2 = indexedDB.open("testDB");
req2.onsuccess = function() {
debug("Second request done");
done();
}
req2.onerror = function() {
debug("Second request unexpected error");
done();
}