OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the content overflow traversal correctness of Spatial Navi
gation | 3 This test ensures the content overflow traversal correctness of Spatial Navi
gation |
4 algorithm: focusable elements in an scrollable containers (e.g. <div>) shoul
d be | 4 algorithm: focusable elements in an scrollable containers (e.g. <div>) shoul
d be |
5 accessible, including offscreen content. | 5 accessible, including offscreen content. |
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 18 matching lines...) Expand all Loading... |
29 <script type="application/javascript"> | 29 <script type="application/javascript"> |
30 | 30 |
31 var resultMap = [ | 31 var resultMap = [ |
32 ["Left", "1"], | 32 ["Left", "1"], |
33 ["DONE", "DONE"] | 33 ["DONE", "DONE"] |
34 ]; | 34 ]; |
35 | 35 |
36 if (window.testRunner) { | 36 if (window.testRunner) { |
37 testRunner.dumpAsText(); | 37 testRunner.dumpAsText(); |
38 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 38 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
39 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 39 window.internals.settings.setSpatialNavigationEnabled(true); |
40 testRunner.waitUntilDone(); | 40 testRunner.waitUntilDone(); |
41 } | 41 } |
42 | 42 |
43 function runTest() | 43 function runTest() |
44 { | 44 { |
45 // starting the test itself: get to a known place. | 45 // starting the test itself: get to a known place. |
46 document.getElementById("start").focus(); | 46 document.getElementById("start").focus(); |
47 | 47 |
48 initTest(resultMap, testCompleted); | 48 initTest(resultMap, testCompleted); |
49 } | 49 } |
(...skipping 14 matching lines...) Expand all Loading... |
64 | 64 |
65 <div style="margin-left:120px"> | 65 <div style="margin-left:120px"> |
66 <a id="off" class="offscreen" href="a">offscreen content</a> | 66 <a id="off" class="offscreen" href="a">offscreen content</a> |
67 <a id="start" href="a">Right link</a> | 67 <a id="start" href="a">Right link</a> |
68 </div><br> | 68 </div><br> |
69 <a id="1" href="a">Down link</a><br> | 69 <a id="1" href="a">Down link</a><br> |
70 <div id="console"></div> | 70 <div id="console"></div> |
71 </body> | 71 </body> |
72 </html> | 72 </html> |
73 | 73 |
OLD | NEW |