| 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("Test IndexedDB database metadata mutation/snapshotting"); | 6 description("Test IndexedDB database metadata mutation/snapshotting"); |
| 7 | 7 |
| 8 indexedDBTest(prepareDatabase, snapshotConnection1); | 8 indexedDBTest(prepareDatabase, snapshotConnection1); |
| 9 function prepareDatabase() | 9 function prepareDatabase() |
| 10 { | 10 { |
| 11 connection1 = event.target.result; | 11 connection1 = event.target.result; |
| 12 evalAndLog("connection1store1 = connection1.createObjectStore('store1')"); | 12 evalAndLog("connection1store1 = connection1.createObjectStore('store1')"); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 shouldBe("connection3store1.indexNames.length", "2"); | 121 shouldBe("connection3store1.indexNames.length", "2"); |
| 122 debug(""); | 122 debug(""); |
| 123 | 123 |
| 124 shouldBe("connection4.version", "4"); | 124 shouldBe("connection4.version", "4"); |
| 125 shouldBe("connection4.objectStoreNames.length", "3"); | 125 shouldBe("connection4.objectStoreNames.length", "3"); |
| 126 shouldBe("connection4store1.indexNames.length", "3"); | 126 shouldBe("connection4store1.indexNames.length", "3"); |
| 127 debug(""); | 127 debug(""); |
| 128 | 128 |
| 129 finishJSTest(); | 129 finishJSTest(); |
| 130 } | 130 } |
| OLD | NEW |