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 workers, recursion, and transaction termination."); | 6 description("Test IndexedDB workers, recursion, and transaction termination."); |
7 | 7 |
8 indexedDBTest(prepareDatabase, createTransaction); | 8 indexedDBTest(prepareDatabase, createTransaction); |
9 function prepareDatabase(evt) | 9 function prepareDatabase(evt) |
10 { | 10 { |
11 preamble(evt); | 11 preamble(evt); |
12 db = event.target.result; | 12 db = event.target.result; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 transaction.onabort = unexpectedAbortCallback; | 106 transaction.onabort = unexpectedAbortCallback; |
107 transaction.oncomplete = errorTransactionCompleted; | 107 transaction.oncomplete = errorTransactionCompleted; |
108 } | 108 } |
109 | 109 |
110 function errorTransactionCompleted() | 110 function errorTransactionCompleted() |
111 { | 111 { |
112 testPassed("Transaction completed"); | 112 testPassed("Transaction completed"); |
113 evalAndExpectException("store.get(0)", "0", "'TransactionInactiveError'"); | 113 evalAndExpectException("store.get(0)", "0", "'TransactionInactiveError'"); |
114 finishJSTest(); | 114 finishJSTest(); |
115 } | 115 } |
OLD | NEW |