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 transaction rollback."); | 6 description("Test IndexedDB transaction rollback."); |
7 | 7 |
8 indexedDBTest(prepareDatabase, setVersionComplete); | 8 indexedDBTest(prepareDatabase, setVersionComplete); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 event.target.transaction.onabort = unexpectedAbortCallback; | 12 event.target.transaction.onabort = unexpectedAbortCallback; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 function getSuccess() | 61 function getSuccess() |
62 { | 62 { |
63 debug("getSuccess():"); | 63 debug("getSuccess():"); |
64 shouldBe("event.target.result", "undefined"); | 64 shouldBe("event.target.result", "undefined"); |
65 | 65 |
66 shouldBeEqualToString("cursor.value", "rollbackValue"); | 66 shouldBeEqualToString("cursor.value", "rollbackValue"); |
67 finishJSTest(); | 67 finishJSTest(); |
68 } | 68 } |
OLD | NEW |