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 openCursor/openKeyCursor with raw IDBKeys."); | 6 description("Test openCursor/openKeyCursor with raw IDBKeys."); |
7 | 7 |
8 var objectStoreData = [ | 8 var objectStoreData = [ |
9 { key: "237-23-7732", value: { name: "Bob", height: 60, weight: 120 } }, | 9 { key: "237-23-7732", value: { name: "Bob", height: 60, weight: 120 } }, |
10 { key: "237-23-7733", value: { name: "Ann", height: 52, weight: 110 } }, | 10 { key: "237-23-7733", value: { name: "Ann", height: 52, weight: 110 } }, |
11 { key: "237-23-7734", value: { name: "Ron", height: 73, weight: 180 } }, | 11 { key: "237-23-7734", value: { name: "Ron", height: 73, weight: 180 } }, |
12 { key: "237-23-7735", value: { name: "Sue", height: 58, weight: 130 } }, | 12 { key: "237-23-7735", value: { name: "Sue", height: 58, weight: 130 } }, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } else if (count == 3) { | 153 } else if (count == 3) { |
154 shouldBeNull("cursor"); | 154 shouldBeNull("cursor"); |
155 } else { | 155 } else { |
156 testFailed("Too much iteration"); | 156 testFailed("Too much iteration"); |
157 } | 157 } |
158 count++; | 158 count++; |
159 }; | 159 }; |
160 request.onerror = unexpectedErrorCallback; | 160 request.onerror = unexpectedErrorCallback; |
161 trans.oncomplete = finishJSTest; | 161 trans.oncomplete = finishJSTest; |
162 } | 162 } |
OLD | NEW |