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 17 matching lines...) Expand all Loading... |
28 ["Up", "6"], | 28 ["Up", "6"], |
29 ["Up", "3"], | 29 ["Up", "3"], |
30 ["Left", "2"], | 30 ["Left", "2"], |
31 ["Left", "1"], | 31 ["Left", "1"], |
32 ["DONE", "DONE"] | 32 ["DONE", "DONE"] |
33 ]; | 33 ]; |
34 | 34 |
35 if (window.testRunner) { | 35 if (window.testRunner) { |
36 testRunner.dumpAsText(); | 36 testRunner.dumpAsText(); |
37 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 37 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
38 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 38 window.internals.settings.setSpatialNavigationEnabled(true); |
39 testRunner.waitUntilDone(); | 39 testRunner.waitUntilDone(); |
40 } | 40 } |
41 | 41 |
42 function runTest() | 42 function runTest() |
43 { | 43 { |
44 // starting the test itself: get to a known place. | 44 // starting the test itself: get to a known place. |
45 document.getElementById("start").focus(); | 45 document.getElementById("start").focus(); |
46 | 46 |
47 initTest(resultMap, testCompleted); | 47 initTest(resultMap, testCompleted); |
48 } | 48 } |
(...skipping 27 matching lines...) Expand all Loading... |
76 <td style="vertical-align: top; text-align: center;"><a id="9" href="a
">a</a></td> | 76 <td style="vertical-align: top; text-align: center;"><a id="9" href="a
">a</a></td> |
77 </tr> | 77 </tr> |
78 </tbody> | 78 </tbody> |
79 </table> | 79 </table> |
80 <div style='margin-top:100px'> | 80 <div style='margin-top:100px'> |
81 <a id="end" href="a">End of table traversal test</a> | 81 <a id="end" href="a">End of table traversal test</a> |
82 </div> | 82 </div> |
83 <div id="console"></div> | 83 <div id="console"></div> |
84 </body> | 84 </body> |
85 </html> | 85 </html> |
OLD | NEW |