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's objectStore.openKeyCursor + the cursor it produces
in depth."); | 6 description("Test IndexedDB's objectStore.openKeyCursor + the cursor it produces
in depth."); |
7 | 7 |
8 // In order of how it should be sorted by IndexedDB. | 8 // In order of how it should be sorted by IndexedDB. |
9 self.testData = [ | 9 self.testData = [ |
10 1, | 10 1, |
11 2, | 11 2, |
12 3, | 12 3, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 return; | 200 return; |
201 } | 201 } |
202 | 202 |
203 debug(""); | 203 debug(""); |
204 debug(str); | 204 debug(str); |
205 | 205 |
206 var request = objectStore.openKeyCursor(null, ascending ? 'next' : 'prev'); | 206 var request = objectStore.openKeyCursor(null, ascending ? 'next' : 'prev'); |
207 request.onsuccess = cursorIteration; | 207 request.onsuccess = cursorIteration; |
208 request.onerror = unexpectedErrorCallback; | 208 request.onerror = unexpectedErrorCallback; |
209 } | 209 } |
OLD | NEW |