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("Ensure that aborted VERSION_CHANGE transactions are completely roll
ed back"); | 6 description("Ensure that aborted VERSION_CHANGE transactions are completely roll
ed back"); |
7 | 7 |
8 indexedDBTest(prepareDatabase, setVersion1Complete); | 8 indexedDBTest(prepareDatabase, setVersion1Complete); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 trans = event.target.transaction; | 12 trans = event.target.transaction; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 request.onerror = unexpectedErrorCallback; | 66 request.onerror = unexpectedErrorCallback; |
67 request.onsuccess = function (e) { | 67 request.onsuccess = function (e) { |
68 db = event.target.result; | 68 db = event.target.result; |
69 shouldBe("db.version", "1"); | 69 shouldBe("db.version", "1"); |
70 shouldBeTrue("db.objectStoreNames.contains('store1')"); | 70 shouldBeTrue("db.objectStoreNames.contains('store1')"); |
71 shouldBeFalse("db.objectStoreNames.contains('store2')"); | 71 shouldBeFalse("db.objectStoreNames.contains('store2')"); |
72 | 72 |
73 finishJSTest(); | 73 finishJSTest(); |
74 } | 74 } |
75 } | 75 } |
OLD | NEW |