| OLD | NEW |
| 1 // original test: | 1 // original test: |
| 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_readonly_tra
nsactions.html | 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_readonly_tra
nsactions.html |
| 3 // license of original test: | 3 // license of original test: |
| 4 // " Any copyright is dedicated to the Public Domain. | 4 // " Any copyright is dedicated to the Public Domain. |
| 5 // http://creativecommons.org/publicdomain/zero/1.0/ " | 5 // http://creativecommons.org/publicdomain/zero/1.0/ " |
| 6 | 6 |
| 7 if (this.importScripts) { | 7 if (this.importScripts) { |
| 8 importScripts('../../../../fast/js/resources/js-test-pre.js'); | 8 importScripts('../../../../resources/js-test.js'); |
| 9 importScripts('../../resources/shared.js'); | 9 importScripts('../../resources/shared.js'); |
| 10 } | 10 } |
| 11 | 11 |
| 12 description("Test IndexedDB's read/write transactions"); | 12 description("Test IndexedDB's read/write transactions"); |
| 13 | 13 |
| 14 indexedDBTest(prepareDatabase, setVersionComplete); | 14 indexedDBTest(prepareDatabase, setVersionComplete); |
| 15 function prepareDatabase() | 15 function prepareDatabase() |
| 16 { | 16 { |
| 17 db = event.target.result; | 17 db = event.target.result; |
| 18 event.target.transaction.onabort = unexpectedAbortCallback; | 18 event.target.transaction.onabort = unexpectedAbortCallback; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 request = evalAndLog("request = db.transaction(osName, 'readwrite').objectSt
ore(osName).delete(key2);"); | 84 request = evalAndLog("request = db.transaction(osName, 'readwrite').objectSt
ore(osName).delete(key2);"); |
| 85 request.onsuccess = postDelete2; | 85 request.onsuccess = postDelete2; |
| 86 request.onerror = unexpectedErrorCallback; | 86 request.onerror = unexpectedErrorCallback; |
| 87 } | 87 } |
| 88 | 88 |
| 89 function postDelete2() | 89 function postDelete2() |
| 90 { | 90 { |
| 91 shouldBe("event.target.transaction.mode", "'readwrite'"); | 91 shouldBe("event.target.transaction.mode", "'readwrite'"); |
| 92 finishJSTest(); | 92 finishJSTest(); |
| 93 } | 93 } |
| OLD | NEW |