chromium/third_party/blink/web_tests/storage/indexeddb/resources/pending-version-change-on-exit.js

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

dbname = decodeURIComponent(self.location.search.substring(1));
evalAndLog("request = indexedDB.open(\"" + dbname + "\", 2)");
request.onupgradeneeded = unexpectedUpgradeNeededCallback;
request.onblocked = function(e) {
    testPassed("worker received blocked event.");
    finishJSTest();
};