| OLD | NEW |
| 1 // original test: | 1 // original test: |
| 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_odd_result_o
rder.html?raw=1 | 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_odd_result_o
rder.html?raw=1 |
| 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: request result persists in setTimeout callback"); | 12 description("Test IndexedDB: request result persists in setTimeout callback"); |
| 13 | 13 |
| 14 indexedDBTest(prepareDatabase, openSuccess); | 14 indexedDBTest(prepareDatabase, openSuccess); |
| 15 function prepareDatabase() | 15 function prepareDatabase() |
| 16 { | 16 { |
| 17 request = event.target; | 17 request = event.target; |
| 18 db = event.target.result; | 18 db = event.target.result; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 request = evalAndLog("request = objectStore.delete(data.key);"); | 93 request = evalAndLog("request = objectStore.delete(data.key);"); |
| 94 request.onsuccess = deleteSuccess; | 94 request.onsuccess = deleteSuccess; |
| 95 request.onerror = unexpectedErrorCallback; | 95 request.onerror = unexpectedErrorCallback; |
| 96 } | 96 } |
| 97 | 97 |
| 98 function deleteSuccess() | 98 function deleteSuccess() |
| 99 { | 99 { |
| 100 debug("deleteSuccess():"); | 100 debug("deleteSuccess():"); |
| 101 finishJSTest(); | 101 finishJSTest(); |
| 102 } | 102 } |
| OLD | NEW |