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 that data inserted into IndexedDB does not get corrupted on di
sk."); | 6 description("Test that data inserted into IndexedDB does not get corrupted on di
sk."); |
7 | 7 |
8 indexedDBTest(prepareDatabase, addData); | 8 indexedDBTest(prepareDatabase, addData); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 debug("setVersionSuccess():"); | 12 debug("setVersionSuccess():"); |
(...skipping 23 matching lines...) Expand all Loading... |
36 var request = evalAndLog("request = transaction.objectStore('storeName').get
('key')"); | 36 var request = evalAndLog("request = transaction.objectStore('storeName').get
('key')"); |
37 request.onerror = unexpectedErrorCallback; | 37 request.onerror = unexpectedErrorCallback; |
38 request.onsuccess = doCheck; | 38 request.onsuccess = doCheck; |
39 } | 39 } |
40 | 40 |
41 function doCheck() | 41 function doCheck() |
42 { | 42 { |
43 shouldBe("event.target.result.x.toString()", "testDate.toString()"); | 43 shouldBe("event.target.result.x.toString()", "testDate.toString()"); |
44 finishJSTest(); | 44 finishJSTest(); |
45 } | 45 } |
OLD | NEW |