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 Array-type keyPaths"); | 6 description("Test IndexedDB Array-type keyPaths"); |
7 | 7 |
8 indexedDBTest(prepareDatabase, testKeyPaths); | 8 indexedDBTest(prepareDatabase, testKeyPaths); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 event.target.transaction.onabort = unexpectedAbortCallback; | 12 event.target.transaction.onabort = unexpectedAbortCallback; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 request.onsuccess = function () { | 54 request.onsuccess = function () { |
55 evalAndLog("cursor = request.result"); | 55 evalAndLog("cursor = request.result"); |
56 shouldBeNonNull("cursor"); | 56 shouldBeNonNull("cursor"); |
57 shouldBeEqualToString("JSON.stringify(cursor.primaryKey)", "[1,2]"); | 57 shouldBeEqualToString("JSON.stringify(cursor.primaryKey)", "[1,2]"); |
58 shouldBeEqualToString("JSON.stringify(cursor.key)", "[3,4]"); | 58 shouldBeEqualToString("JSON.stringify(cursor.key)", "[3,4]"); |
59 }; | 59 }; |
60 }; | 60 }; |
61 | 61 |
62 transaction.oncomplete = finishJSTest; | 62 transaction.oncomplete = finishJSTest; |
63 } | 63 } |
OLD | NEW |