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 internal active flag."); | 6 description("Test IndexedDB transaction internal active flag."); |
7 | 7 |
8 indexedDBTest(prepareDatabase, runTransaction); | 8 indexedDBTest(prepareDatabase, runTransaction); |
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 function transactionComplete() | 116 function transactionComplete() |
117 { | 117 { |
118 debug(""); | 118 debug(""); |
119 debug("transactionComplete():"); | 119 debug("transactionComplete():"); |
120 evalAndExpectException("store = transaction.objectStore('store')", "DOMExcep
tion.INVALID_STATE_ERR", "'InvalidStateError'"); | 120 evalAndExpectException("store = transaction.objectStore('store')", "DOMExcep
tion.INVALID_STATE_ERR", "'InvalidStateError'"); |
121 finishJSTest(); | 121 finishJSTest(); |
122 } | 122 } |
OLD | NEW |