| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 <script src="resources/shared.js"></script> | 4 <script src="resources/shared.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 description("Implicitly terminating worker with blocked setVersion call should a
llow later open calls to proceed"); | 9 description("Implicitly terminating worker with blocked setVersion call should a
llow later open calls to proceed"); |
| 10 | 10 |
| 11 function test() | 11 function test() |
| 12 { | 12 { |
| 13 removeVendorPrefixes(); | |
| 14 dbname = self.location.pathname.substring(1 + self.location.pathname.lastInd
exOf("/")); | 13 dbname = self.location.pathname.substring(1 + self.location.pathname.lastInd
exOf("/")); |
| 15 evalAndLog("request = indexedDB.open(\"" + dbname + "\")"); | 14 evalAndLog("request = indexedDB.open(\"" + dbname + "\")"); |
| 16 request.onblocked = unexpectedBlockedCallback; | 15 request.onblocked = unexpectedBlockedCallback; |
| 17 request.onerror = unexpectedErrorCallback; | 16 request.onerror = unexpectedErrorCallback; |
| 18 if (self.location.search == "?second") { | 17 if (self.location.search == "?second") { |
| 19 request.onsuccess = function() { | 18 request.onsuccess = function() { |
| 20 testPassed("Open worked after page reload."); | 19 testPassed("Open worked after page reload."); |
| 21 finishJSTest(); | 20 finishJSTest(); |
| 22 }; | 21 }; |
| 23 } else { | 22 } else { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 39 else | 38 else |
| 40 originalOnMessage(event); | 39 originalOnMessage(event); |
| 41 }; | 40 }; |
| 42 } | 41 } |
| 43 | 42 |
| 44 test(); | 43 test(); |
| 45 | 44 |
| 46 </script> | 45 </script> |
| 47 </body> | 46 </body> |
| 48 </html> | 47 </html> |
| OLD | NEW |