blob: e4117e371a3d065f5171a1a026076097d87725ef [file] [log] [blame]
if (this.importScripts) {
importScripts('../../../resources/js-test.js');
importScripts('shared.js');
}
function test()
{
removeVendorPrefixes();
dbname = decodeURIComponent(self.location.search.substring(1));
request = evalAndLog("indexedDB.open(dbname, 2)");
request.onerror = unexpectedErrorCallback;
request.onsuccess = unexpectedSuccessCallback;
request.onupgradeneeded = unexpectedUpgradeNeededCallback;
request.onblocked = function() {
testPassed("worker received blocked event.");
postMessage("gotblocked");
};
}
test();