OLD | NEW |
1 if (this.importScripts) { | 1 if (this.importScripts) { |
2 importScripts('../../../resources/js-test.js'); | 2 importScripts('../../../resources/js-test.js'); |
3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
4 } | 4 } |
5 | 5 |
6 description("Test IndexedDB's webkitIDBIndex.openCursor + the cursor it produces
in depth."); | 6 description("Test IndexedDB's IDBIndex.openCursor + the cursor it produces in de
pth."); |
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 1, | 11 1, |
12 3.14159, | 12 3.14159, |
13 3.14159, | 13 3.14159, |
14 10, | 14 10, |
15 // FIXME: Dates. | 15 // FIXME: Dates. |
16 "A big string", | 16 "A big string", |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 return; | 220 return; |
221 } | 221 } |
222 | 222 |
223 debug(""); | 223 debug(""); |
224 debug(str); | 224 debug(str); |
225 | 225 |
226 var request = indexObject.openKeyCursor(null, ascending ? 'next' : 'prev'); | 226 var request = indexObject.openKeyCursor(null, ascending ? 'next' : 'prev'); |
227 request.onsuccess = cursorIteration; | 227 request.onsuccess = cursorIteration; |
228 request.onerror = unexpectedErrorCallback; | 228 request.onerror = unexpectedErrorCallback; |
229 } | 229 } |
OLD | NEW |