| 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 does not crash on abort."); | 6 description("Test IndexedDB transaction does not crash on abort."); |
| 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; |
| 13 evalAndLog("db.createObjectStore('foo')"); | 13 evalAndLog("db.createObjectStore('foo')"); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function setVersionComplete() | 16 function setVersionComplete() |
| 17 { | 17 { |
| 18 evalAndLog("db.transaction('foo')"); | 18 evalAndLog("db.transaction('foo')"); |
| 19 evalAndLog("self.gc()"); | 19 evalAndLog("self.gc()"); |
| 20 finishJSTest(); | 20 finishJSTest(); |
| 21 } | 21 } |
| OLD | NEW |