OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the correctness of the "Fully aligned" precedence | 3 This test ensures the correctness of the "Fully aligned" precedence |
4 logic implemented by Spatial Navigation algorithm in an vertical direction: | 4 logic implemented by Spatial Navigation algorithm in an vertical direction: |
5 targets whose middle falls between the top and bottom of the current focused | 5 targets whose middle falls between the top and bottom of the current focused |
6 element are preferably to move focus to, even if it is not the shortest dist
ance. | 6 element are preferably to move focus to, even if it is not the shortest dist
ance. |
7 | 7 |
8 * Pre-conditions: | 8 * Pre-conditions: |
9 1) DRT support for SNav enable/disable. | 9 1) DRT support for SNav enable/disable. |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 ["Down", "7"], | 25 ["Down", "7"], |
26 ["Down", "end"], | 26 ["Down", "end"], |
27 ["Up", "8"], | 27 ["Up", "8"], |
28 ["Up", "6"], | 28 ["Up", "6"], |
29 ["DONE", "DONE"] | 29 ["DONE", "DONE"] |
30 ]; | 30 ]; |
31 | 31 |
32 if (window.testRunner) { | 32 if (window.testRunner) { |
33 testRunner.dumpAsText(); | 33 testRunner.dumpAsText(); |
34 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 34 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
35 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 35 window.internals.settings.setSpatialNavigationEnabled(true); |
36 testRunner.waitUntilDone(); | 36 testRunner.waitUntilDone(); |
37 } | 37 } |
38 | 38 |
39 function runTest() | 39 function runTest() |
40 { | 40 { |
41 // starting the test itself: get to a known place. | 41 // starting the test itself: get to a known place. |
42 document.getElementById("start").focus(); | 42 document.getElementById("start").focus(); |
43 | 43 |
44 initTest(resultMap, testCompleted); | 44 initTest(resultMap, testCompleted); |
45 } | 45 } |
(...skipping 26 matching lines...) Expand all Loading... |
72 <br><br><br><br> | 72 <br><br><br><br> |
73 <div style="margin-left: 40px;"> | 73 <div style="margin-left: 40px;"> |
74 <a id="8" href="a">test<br></a> | 74 <a id="8" href="a">test<br></a> |
75 </div> | 75 </div> |
76 <a id="end" href="a">test<br></a> | 76 <a id="end" href="a">test<br></a> |
77 </div> | 77 </div> |
78 <div id="console"></div> | 78 <div id="console"></div> |
79 </body> | 79 </body> |
80 </html> | 80 </html> |
81 | 81 |
OLD | NEW |