| 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("Verify that queuing up several commands works (and they all fire)."
); | 6 description("Verify that queuing up several commands works (and they all fire)."
); |
| 7 | 7 |
| 8 indexedDBTest(prepareDatabase); | 8 indexedDBTest(prepareDatabase); |
| 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 18 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 function verifyAdd(expected) | 32 function verifyAdd(expected) |
| 33 { | 33 { |
| 34 shouldBe("" + addCount++, "" + expected); | 34 shouldBe("" + addCount++, "" + expected); |
| 35 | 35 |
| 36 if (addCount == 3) | 36 if (addCount == 3) |
| 37 finishJSTest(); | 37 finishJSTest(); |
| 38 if (addCount > 3) | 38 if (addCount > 3) |
| 39 testFailed("Unexpected call to verifyAdd!"); | 39 testFailed("Unexpected call to verifyAdd!"); |
| 40 } | 40 } |
| OLD | NEW |