| 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 keyPaths"); | 6 description("Test IndexedDB keyPaths"); |
| 7 | 7 |
| 8 testData = [{ name: "simple identifier", | 8 testData = [{ name: "simple identifier", |
| 9 value: {id:10}, | 9 value: {id:10}, |
| 10 keyPath: "id", | 10 keyPath: "id", |
| 11 key: 10 }, | 11 key: 10 }, |
| 12 { name: "simple identifiers", | 12 { name: "simple identifiers", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 shouldBe("cursor.key", "testData[nextToOpen].key"); | 57 shouldBe("cursor.key", "testData[nextToOpen].key"); |
| 58 } else { | 58 } else { |
| 59 testFailed("cursor is null"); | 59 testFailed("cursor is null"); |
| 60 } | 60 } |
| 61 if (++nextToOpen < testData.length) { | 61 if (++nextToOpen < testData.length) { |
| 62 prepareDatabase(); | 62 prepareDatabase(); |
| 63 } else { | 63 } else { |
| 64 finishJSTest(); | 64 finishJSTest(); |
| 65 } | 65 } |
| 66 } | 66 } |
| OLD | NEW |