| 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("Try to call db.close() after upgradeneeded but before the correspon
ding success event fires"); | 6 description("Try to call db.close() after upgradeneeded but before the correspon
ding success event fires"); |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 removeVendorPrefixes(); | |
| 11 setDBNameFromPath(); | 10 setDBNameFromPath(); |
| 12 | 11 |
| 13 request = evalAndLog("indexedDB.deleteDatabase(dbname)"); | 12 request = evalAndLog("indexedDB.deleteDatabase(dbname)"); |
| 14 request.onsuccess = deleteSuccess; | 13 request.onsuccess = deleteSuccess; |
| 15 request.onerror = unexpectedErrorCallback; | 14 request.onerror = unexpectedErrorCallback; |
| 16 } | 15 } |
| 17 | 16 |
| 18 function deleteSuccess(evt) { | 17 function deleteSuccess(evt) { |
| 19 preamble(evt); | 18 preamble(evt); |
| 20 | 19 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 84 |
| 86 shouldBeTrue("didCallCloseDB"); | 85 shouldBeTrue("didCallCloseDB"); |
| 87 shouldBeTrue("sawTransactionComplete"); | 86 shouldBeTrue("sawTransactionComplete"); |
| 88 shouldBe('db.version', "7"); | 87 shouldBe('db.version', "7"); |
| 89 shouldBe("db.objectStoreNames.length", "1"); | 88 shouldBe("db.objectStoreNames.length", "1"); |
| 90 | 89 |
| 91 finishJSTest(); | 90 finishJSTest(); |
| 92 } | 91 } |
| 93 | 92 |
| 94 test(); | 93 test(); |
| OLD | NEW |