OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css"> | 3 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css"> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
5 <script src="../../fast/js/resources/js-test-post-function.js"></script> | 5 <script src="../../fast/js/resources/js-test-post-function.js"></script> |
6 <script src="resources/shared.js"></script> | 6 <script src="resources/shared.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <p id="description"></p> | 9 <p id="description"></p> |
10 <div id="console"></div> | 10 <div id="console"></div> |
11 <script> | 11 <script> |
12 | 12 |
13 description("Test IndexedDB's objectStore.openCursor + the cursor it produces in
depth."); | 13 description("Test IndexedDB's objectStore.openCursor + the cursor it produces in
depth."); |
14 if (window.layoutTestController) | 14 if (window.layoutTestController) |
15 layoutTestController.waitUntilDone(); | 15 layoutTestController.waitUntilDone(); |
16 | 16 |
17 // In order of how it should be sorted by IndexedDB. | 17 // In order of how it should be sorted by IndexedDB. |
18 window.testData = [ | 18 window.testData = [ |
19 1, | 19 2.718281828459, |
20 2, | |
21 3, | 20 3, |
| 21 3.14159265, |
22 10, | 22 10, |
23 // FIXME: Dates. | 23 // FIXME: Dates. |
24 "A bigger string", | 24 "A bigger string", |
25 "The biggest", | 25 "The biggest", |
26 "a low string" | 26 "a low string" |
27 ]; | 27 ]; |
28 | 28 |
29 function openDatabase() | 29 function openDatabase() |
30 { | 30 { |
31 result = evalAndLog("webkitIndexedDB.open('someDB')"); | 31 result = evalAndLog("webkitIndexedDB.open('someDB')"); |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 request.onsuccess = cursorIteration; | 235 request.onsuccess = cursorIteration; |
236 request.onerror = unexpectedErrorCallback; | 236 request.onerror = unexpectedErrorCallback; |
237 } | 237 } |
238 | 238 |
239 openDatabase(); // The first step. | 239 openDatabase(); // The first step. |
240 var successfullyParsed = true; | 240 var successfullyParsed = true; |
241 | 241 |
242 </script> | 242 </script> |
243 </body> | 243 </body> |
244 </html> | 244 </html> |
OLD | NEW |