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 if an element if clipped overflow in a scrollable container (e.g. <div>), | 4 if an element if clipped overflow in a scrollable container (e.g. <div>), |
5 scroll-in-direction should happen in the container box, not on the outer vie
w. | 5 scroll-in-direction should happen in the container box, not on the outer vie
w. |
6 | 6 |
7 * Pre-conditions: | 7 * Pre-conditions: |
8 1) DRT support for spatial navigation enable/disable. | 8 1) DRT support for spatial navigation enable/disable. |
9 | 9 |
10 * Navigation steps: | 10 * Navigation steps: |
(...skipping 21 matching lines...) Expand all Loading... |
32 <script type="application/javascript"> | 32 <script type="application/javascript"> |
33 | 33 |
34 var resultMap = [ | 34 var resultMap = [ |
35 ["Down", "start"], | 35 ["Down", "start"], |
36 ["DONE", "DONE"] | 36 ["DONE", "DONE"] |
37 ]; | 37 ]; |
38 | 38 |
39 if (window.testRunner) { | 39 if (window.testRunner) { |
40 testRunner.dumpAsText(); | 40 testRunner.dumpAsText(); |
41 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 41 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
42 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 42 window.internals.settings.setSpatialNavigationEnabled(true); |
43 testRunner.waitUntilDone(); | 43 testRunner.waitUntilDone(); |
44 } | 44 } |
45 | 45 |
46 function runTest() | 46 function runTest() |
47 { | 47 { |
48 // starting the test itself: get to a known place. | 48 // starting the test itself: get to a known place. |
49 document.getElementById("start").focus(); | 49 document.getElementById("start").focus(); |
50 | 50 |
51 initTest(resultMap, testCompleted); | 51 initTest(resultMap, testCompleted); |
52 } | 52 } |
(...skipping 14 matching lines...) Expand all Loading... |
67 <p>That is is a normal <a id="start" href="a">link</a>.</p> | 67 <p>That is is a normal <a id="start" href="a">link</a>.</p> |
68 <div class="scroll" id="div"> | 68 <div class="scroll" id="div"> |
69 <p>This is a scrollable Div created with the CSS property overflow.</p> | 69 <p>This is a scrollable Div created with the CSS property overflow.</p> |
70 <br><br><br><br><br><br><br><br> | 70 <br><br><br><br><br><br><br><br> |
71 <p> ... and here we have a clipped overflow <a id="1" href="a">link</a>.</
p> | 71 <p> ... and here we have a clipped overflow <a id="1" href="a">link</a>.</
p> |
72 </div> | 72 </div> |
73 <p>And this is another normal <a id="2" href="a">link_2</a>.</p> | 73 <p>And this is another normal <a id="2" href="a">link_2</a>.</p> |
74 <div id="console"></div> | 74 <div id="console"></div> |
75 </body> | 75 </body> |
76 </html> | 76 </html> |
OLD | NEW |