OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <script src="resources/spatial-navigation-utils.js"></script> | 4 <script src="resources/spatial-navigation-utils.js"></script> |
5 <script type="application/javascript"> | 5 <script type="application/javascript"> |
6 | 6 |
7 var resultMap = [ | 7 var resultMap = [ |
8 ["Down", "f2"], | 8 ["Down", "f2"], |
9 ["Down", "f3"], | 9 ["Down", "f3"], |
10 ["Down", "f3"], | 10 ["Down", "f3"], |
11 ["Down", "f4"], | 11 ["Down", "f4"], |
12 ["Down", "f4"], | 12 ["Down", "f4"], |
13 ["Down", "f5"], | 13 ["Down", "f5"], |
14 ["Down", "f5"], | 14 ["Down", "f5"], |
15 ["Down", "f6"], | 15 ["Down", "f6"], |
16 ["Down", "f6"], | 16 ["Down", "f6"], |
17 ["Down", "f9"], | 17 ["Down", "f9"], |
18 ["DONE", "DONE"] | 18 ["DONE", "DONE"] |
19 ]; | 19 ]; |
20 | 20 |
21 if (window.testRunner) { | 21 if (window.testRunner) { |
22 testRunner.dumpAsText(); | 22 testRunner.dumpAsText(); |
23 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 23 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
24 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 24 window.internals.settings.setSpatialNavigationEnabled(true); |
25 testRunner.waitUntilDone(); | 25 testRunner.waitUntilDone(); |
26 } | 26 } |
27 | 27 |
28 function runTest() | 28 function runTest() |
29 { | 29 { |
30 // starting the test itself: get to a known place. | 30 // starting the test itself: get to a known place. |
31 document.getElementById("start").focus(); | 31 document.getElementById("start").focus(); |
32 | 32 |
33 initTest(resultMap, testCompleted); | 33 initTest(resultMap, testCompleted); |
34 } | 34 } |
(...skipping 27 matching lines...) Expand all Loading... |
62 <div><a href="#" id="f7"><img src="resources/green.png" width=40px; height=40px;
></a></div> | 62 <div><a href="#" id="f7"><img src="resources/green.png" width=40px; height=40px;
></a></div> |
63 <div><a href="#" id="f8"><img src="resources/green.png" width=50px; height=40px;
></a></div> | 63 <div><a href="#" id="f8"><img src="resources/green.png" width=50px; height=40px;
></a></div> |
64 </div><br> | 64 </div><br> |
65 <div><a href="#" id="f9"><img src="resources/green.png" width=40px; height=40px;
></a></div> | 65 <div><a href="#" id="f9"><img src="resources/green.png" width=40px; height=40px;
></a></div> |
66 </div></div> | 66 </div></div> |
67 <div id="console"></div> | 67 <div id="console"></div> |
68 This test is testing that div with overflow:auto would scroll, by div with overf
low:hidden would not. | 68 This test is testing that div with overflow:auto would scroll, by div with overf
low:hidden would not. |
69 </body> | 69 </body> |
70 </html> | 70 </html> |
71 | 71 |
OLD | NEW |