OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the basic table traversal correctness of | 3 This test ensures the basic table traversal correctness of |
4 Spatial Navigation (SNav) algorithm: focusable elements in a | 4 Spatial Navigation (SNav) algorithm: focusable elements in a |
5 <table> should be accessible. | 5 <table> should be accessible. |
6 | 6 |
7 * Pre-conditions: | 7 * Pre-conditions: |
8 1) DRT support for SNav enable/disable. | 8 1) DRT support for SNav enable/disable. |
9 | 9 |
10 * Navigation steps: | 10 * Navigation steps: |
(...skipping 20 matching lines...) Expand all Loading... |
31 ["Left", "6"], | 31 ["Left", "6"], |
32 ["Up", "3"], | 32 ["Up", "3"], |
33 ["Left", "2"], | 33 ["Left", "2"], |
34 ["Left", "1"], | 34 ["Left", "1"], |
35 ["DONE", "DONE"] | 35 ["DONE", "DONE"] |
36 ]; | 36 ]; |
37 | 37 |
38 if (window.testRunner) { | 38 if (window.testRunner) { |
39 testRunner.dumpAsText(); | 39 testRunner.dumpAsText(); |
40 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 40 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
41 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 41 window.internals.settings.setSpatialNavigationEnabled(true); |
42 testRunner.waitUntilDone(); | 42 testRunner.waitUntilDone(); |
43 } | 43 } |
44 | 44 |
45 function runTest() | 45 function runTest() |
46 { | 46 { |
47 // starting the test itself: get to a known place. | 47 // starting the test itself: get to a known place. |
48 document.getElementById("start").focus(); | 48 document.getElementById("start").focus(); |
49 | 49 |
50 initTest(resultMap, testCompleted); | 50 initTest(resultMap, testCompleted); |
51 } | 51 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 </table> | 83 </table> |
84 <div style='margin-top:8px'> | 84 <div style='margin-top:8px'> |
85 <a id="end" href="a">a<a> | 85 <a id="end" href="a">a<a> |
86 </div> | 86 </div> |
87 <div style="margin-left: 50px; margin-top:-70px"> | 87 <div style="margin-left: 50px; margin-top:-70px"> |
88 <a id="right" href="http://www.google.com">a</a> | 88 <a id="right" href="http://www.google.com">a</a> |
89 </div> | 89 </div> |
90 <div style="margin-top:100px" id="console"></div> | 90 <div style="margin-top:100px" id="console"></div> |
91 </body> | 91 </body> |
92 </html> | 92 </html> |
OLD | NEW |