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 keys ordering and readback from cursors."); | 6 description("Test IndexedDB keys ordering and readback from cursors."); |
7 | 7 |
8 indexedDBTest(prepareDatabase, populateStore); | 8 indexedDBTest(prepareDatabase, populateStore); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 evalAndLog("db.createObjectStore('store')"); | 12 evalAndLog("db.createObjectStore('store')"); |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 for (var i = 0; i < cases.length; ++i) { | 198 for (var i = 0; i < cases.length; ++i) { |
199 for (var j = 0; j < cases.length; ++j) { | 199 for (var j = 0; j < cases.length; ++j) { |
200 if (i === j) { | 200 if (i === j) { |
201 shouldBeTrue("compare(" + cases[i] + ", " + cases[j] + ")"); | 201 shouldBeTrue("compare(" + cases[i] + ", " + cases[j] + ")"); |
202 } else { | 202 } else { |
203 shouldBeFalse("compare(" + cases[i] + ", " + cases[j] + ")"); | 203 shouldBeFalse("compare(" + cases[i] + ", " + cases[j] + ")"); |
204 } | 204 } |
205 } | 205 } |
206 } | 206 } |
207 } | 207 } |
OLD | NEW |