Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / resources / pending-version-change-stuck.js
blob42a3a44ef8e0c1a5942eca1954bd142389863096
1 if (this.importScripts) {
2     importScripts('../../../resources/js-test.js');
3     importScripts('shared.js');
6 function test()
8     dbname = decodeURIComponent(self.location.search.substring(1));
9     request = evalAndLog("indexedDB.open(dbname, 2)");
10     request.onerror = unexpectedErrorCallback;
11     request.onsuccess = unexpectedSuccessCallback;
12     request.onupgradeneeded = unexpectedUpgradeNeededCallback;
13     request.onblocked = function() {
14         testPassed("worker received blocked event.");
15         postMessage("gotblocked");
16     };
19 test();