| OLD | NEW |
| 1 if (this.importScripts) { | 1 if (this.importScripts) { |
| 2 importScripts('../../../resources/js-test.js'); | 2 importScripts('../../../resources/js-test.js'); |
| 3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
| 4 } | 4 } |
| 5 | 5 |
| 6 description("Test that blocked events get delivered properly with the new open a
pi"); | 6 description("Test that blocked events get delivered properly with the new open a
pi"); |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 removeVendorPrefixes(); | |
| 11 setDBNameFromPath(); | 10 setDBNameFromPath(); |
| 12 request = evalAndLog("indexedDB.deleteDatabase(dbname)"); | 11 request = evalAndLog("indexedDB.deleteDatabase(dbname)"); |
| 13 request.onsuccess = deleteSuccess; | 12 request.onsuccess = deleteSuccess; |
| 14 request.onerror = unexpectedErrorCallback; | 13 request.onerror = unexpectedErrorCallback; |
| 15 } | 14 } |
| 16 | 15 |
| 17 function deleteSuccess(evt) { | 16 function deleteSuccess(evt) { |
| 18 preamble(); | 17 preamble(); |
| 19 evalAndLog("request = indexedDB.open(dbname, 2)"); | 18 evalAndLog("request = indexedDB.open(dbname, 2)"); |
| 20 request.onsuccess = firstSuccessEventHandler; | 19 request.onsuccess = firstSuccessEventHandler; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 80 } |
| 82 | 81 |
| 83 function secondSuccessCallback(evt) | 82 function secondSuccessCallback(evt) |
| 84 { | 83 { |
| 85 preamble(evt); | 84 preamble(evt); |
| 86 shouldBeTrue("gotSecondUpgradeNeededEvent"); | 85 shouldBeTrue("gotSecondUpgradeNeededEvent"); |
| 87 finishJSTest(); | 86 finishJSTest(); |
| 88 } | 87 } |
| 89 | 88 |
| 90 test(); | 89 test(); |
| OLD | NEW |