OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the correctness of Spatial Navigation (SNav) algorithm ove
r single select element. | 3 This test ensures the correctness of Spatial Navigation (SNav) algorithm ove
r single select element. |
4 | 4 |
5 * Pre-conditions: | 5 * Pre-conditions: |
6 1) DRT support for SNav enable/disable. | 6 1) DRT support for SNav enable/disable. |
7 | 7 |
8 * Navigation steps: | 8 * Navigation steps: |
9 1) Loads this page, focus goes to "start" automatically. | 9 1) Loads this page, focus goes to "start" automatically. |
10 2) Focus moves away from select in 4 different directions to neighbor nodes
and back. | 10 2) Focus moves away from select in 4 different directions to neighbor nodes
and back. |
(...skipping 16 matching lines...) Expand all Loading... |
27 ["Down", "start"], | 27 ["Down", "start"], |
28 ["Up", "start"], | 28 ["Up", "start"], |
29 ["Space", "start"], | 29 ["Space", "start"], |
30 ["Down", "8"], | 30 ["Down", "8"], |
31 ["DONE", "DONE"] | 31 ["DONE", "DONE"] |
32 ]; | 32 ]; |
33 | 33 |
34 if (window.testRunner) { | 34 if (window.testRunner) { |
35 testRunner.dumpAsText(); | 35 testRunner.dumpAsText(); |
36 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 36 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
37 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 37 window.internals.settings.setSpatialNavigationEnabled(true); |
38 testRunner.waitUntilDone(); | 38 testRunner.waitUntilDone(); |
39 } | 39 } |
40 | 40 |
41 function runTest() | 41 function runTest() |
42 { | 42 { |
43 // starting the test itself: get to a known place. | 43 // starting the test itself: get to a known place. |
44 document.getElementById("start").focus(); | 44 document.getElementById("start").focus(); |
45 | 45 |
46 initTest(resultMap, additionalTest); | 46 initTest(resultMap, additionalTest); |
47 } | 47 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 <td style="vertical-align: top; text-align: center;"></td> | 86 <td style="vertical-align: top; text-align: center;"></td> |
87 <td style="vertical-align: top; text-align: center;"><a id="8" href="a
">8</a></td> | 87 <td style="vertical-align: top; text-align: center;"><a id="8" href="a
">8</a></td> |
88 <td style="vertical-align: top; text-align: center;"></td> | 88 <td style="vertical-align: top; text-align: center;"></td> |
89 </tr> | 89 </tr> |
90 </tbody> | 90 </tbody> |
91 </table> | 91 </table> |
92 <div id="console"></div> | 92 <div id="console"></div> |
93 </body> | 93 </body> |
94 </html> | 94 </html> |
95 | 95 |
OLD | NEW |