| 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 integer versions are retained when backing store is opene
d/closed/re-opened."); | 6 description("Test that integer versions are retained when backing store is opene
d/closed/re-opened."); |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 removeVendorPrefixes(); | |
| 11 setDBNameFromPath(); | 10 setDBNameFromPath(); |
| 12 | 11 |
| 13 // NOTE: deleteDatabase is not used, otherwise it would set the backing stor
e schema version | 12 // NOTE: deleteDatabase is not used, otherwise it would set the backing stor
e schema version |
| 14 // which would conceal the failure being tested for. Instead, a unique name
is used each time. | 13 // which would conceal the failure being tested for. Instead, a unique name
is used each time. |
| 15 evalAndLog("dbname = dbname + Date.now()"); | 14 evalAndLog("dbname = dbname + Date.now()"); |
| 16 | 15 |
| 17 openFirstTime(); | 16 openFirstTime(); |
| 18 } | 17 } |
| 19 | 18 |
| 20 function openFirstTime() { | 19 function openFirstTime() { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 50 evalAndLog("db = request.result"); | 49 evalAndLog("db = request.result"); |
| 51 shouldBe("db.version", "1"); | 50 shouldBe("db.version", "1"); |
| 52 shouldBe("db.objectStoreNames.length", "1"); | 51 shouldBe("db.objectStoreNames.length", "1"); |
| 53 evalAndLog("db.close()"); | 52 evalAndLog("db.close()"); |
| 54 debug(""); | 53 debug(""); |
| 55 finishJSTest(); | 54 finishJSTest(); |
| 56 }; | 55 }; |
| 57 } | 56 } |
| 58 | 57 |
| 59 test(); | 58 test(); |
| OLD | NEW |