OLD | NEW |
1 if (this.importScripts) { | 1 if (this.importScripts) { |
2 importScripts('../../../fast/js/resources/js-test-pre.js'); | 2 importScripts('../../../resources/js-test.js'); |
3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
4 } | 4 } |
5 | 5 |
6 description("Check that a page reloaded during an in-flight upgradeneeded event
doesn't hang."); | 6 description("Check that a page reloaded during an in-flight upgradeneeded event
doesn't hang."); |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 removeVendorPrefixes(); | 10 removeVendorPrefixes(); |
11 setDBNameFromPath(); | 11 setDBNameFromPath(); |
12 evalAndLog("dbname1 = dbname + '1'"); | 12 evalAndLog("dbname1 = dbname + '1'"); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 request.onsuccess = function openOnSuccess1(evt) { | 61 request.onsuccess = function openOnSuccess1(evt) { |
62 preamble(evt); | 62 preamble(evt); |
63 shouldBeTrue("isAfterReload()"); | 63 shouldBeTrue("isAfterReload()"); |
64 finishJSTest(); | 64 finishJSTest(); |
65 }; | 65 }; |
66 if (!isAfterReload()) | 66 if (!isAfterReload()) |
67 reload(); | 67 reload(); |
68 } | 68 } |
69 | 69 |
70 test(); | 70 test(); |
OLD | NEW |