| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <!-- | 2 <!-- |
| 3 This test ensures the correctness of a basic aspect of spatial navigation tr
aversal | 3 This test ensures the correctness of a basic aspect of spatial navigation tr
aversal |
| 4 routines: focusable elements in scrollable containers (e.g. <div>) should be | 4 routines: focusable elements in scrollable containers (e.g. <div>) should be |
| 5 accessible, including offscreen content. | 5 accessible, including offscreen content. |
| 6 | 6 |
| 7 * Pre-conditions: | 7 * Pre-conditions: |
| 8 1) DRT support for spatial navivation enable/disable. | 8 1) DRT support for spatial navivation enable/disable. |
| 9 | 9 |
| 10 * Navigation steps: | 10 * Navigation steps: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 var resultMap = [ | 27 var resultMap = [ |
| 28 ["Down", "2"], | 28 ["Down", "2"], |
| 29 ["Up", "start"], | 29 ["Up", "start"], |
| 30 ["DONE", "DONE"] | 30 ["DONE", "DONE"] |
| 31 ]; | 31 ]; |
| 32 | 32 |
| 33 if (window.testRunner) { | 33 if (window.testRunner) { |
| 34 testRunner.dumpAsText(); | 34 testRunner.dumpAsText(); |
| 35 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 35 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 36 window.internals.settings.setSpatialNavigationEnabled(true); | 36 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
| 37 testRunner.waitUntilDone(); | 37 testRunner.waitUntilDone(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 function runTest() | 40 function runTest() |
| 41 { | 41 { |
| 42 // starting the test itself: get to a known place. | 42 // starting the test itself: get to a known place. |
| 43 document.getElementById("start").focus(); | 43 document.getElementById("start").focus(); |
| 44 | 44 |
| 45 initTest(resultMap, testCompleted); | 45 initTest(resultMap, testCompleted); |
| 46 } | 46 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 64 </div> | 64 </div> |
| 65 | 65 |
| 66 <div> | 66 <div> |
| 67 <a href="#" id="2">This is an element</a><br> | 67 <a href="#" id="2">This is an element</a><br> |
| 68 </div> | 68 </div> |
| 69 <div id="console"></div> | 69 <div id="console"></div> |
| 70 <div>This test tests that a anchor element with only white spaces gives the
correct size in ContainerNode::getRect().</div> | 70 <div>This test tests that a anchor element with only white spaces gives the
correct size in ContainerNode::getRect().</div> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| 73 | 73 |
| OLD | NEW |