| 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 webkitIDBIndex.openCursor + the cursor it produces
in depth."); | 13 description("Test IndexedDB's webkitIDBIndex.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 1, |
| 20 1, | 20 1, |
| 21 2, | 21 3.14159, |
| 22 2, | 22 3.14159, |
| 23 10, | 23 10, |
| 24 // FIXME: Dates. | 24 // FIXME: Dates. |
| 25 "A big string", | 25 "A big string", |
| 26 "the BIGEST string", | 26 "the BIGEST string", |
| 27 "the BIGEST string" | 27 "the BIGEST string" |
| 28 ]; | 28 ]; |
| 29 | 29 |
| 30 function openDatabase() | 30 function openDatabase() |
| 31 { | 31 { |
| 32 result = evalAndLog("webkitIndexedDB.open('someDB')"); | 32 result = evalAndLog("webkitIndexedDB.open('someDB')"); |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 request.onsuccess = cursorIteration; | 258 request.onsuccess = cursorIteration; |
| 259 request.onerror = unexpectedErrorCallback; | 259 request.onerror = unexpectedErrorCallback; |
| 260 } | 260 } |
| 261 | 261 |
| 262 openDatabase(); // The first step. | 262 openDatabase(); // The first step. |
| 263 var successfullyParsed = true; | 263 var successfullyParsed = true; |
| 264 | 264 |
| 265 </script> | 265 </script> |
| 266 </body> | 266 </body> |
| 267 </html> | 267 </html> |
| OLD | NEW |