1 if (this.importScripts) {
2 importScripts('../../../resources/js-test.js');
3 importScripts('shared.js');
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");