| 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's IDBObjectStore.count()."); | 6 description("Test IndexedDB's IDBObjectStore.count()."); |
| 7 | 7 |
| 8 indexedDBTest(prepareDatabase, verifyCount); | 8 indexedDBTest(prepareDatabase, verifyCount); |
| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 shouldBe("request.result", String(test.expected)); | 116 shouldBe("request.result", String(test.expected)); |
| 117 if (tests.length) { | 117 if (tests.length) { |
| 118 nextTest(); | 118 nextTest(); |
| 119 } | 119 } |
| 120 // otherwise let the transaction complete | 120 // otherwise let the transaction complete |
| 121 }; | 121 }; |
| 122 } | 122 } |
| 123 | 123 |
| 124 nextTest(); | 124 nextTest(); |
| 125 } | 125 } |
| OLD | NEW |