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", "e1"], | 8 ["Down", "e1"], |
9 ["Down", "e2"], | 9 ["Down", "e2"], |
10 ["Down", "e3"], | 10 ["Down", "e3"], |
11 ["Up", "e2"], | 11 ["Up", "e2"], |
12 ["Up", "e1"], | 12 ["Up", "e1"], |
13 ["Up", "start"], | 13 ["Up", "start"], |
14 ["DONE", "DONE"] | 14 ["DONE", "DONE"] |
15 ]; | 15 ]; |
16 | 16 |
17 if (window.testRunner) { | 17 if (window.testRunner) { |
18 testRunner.dumpAsText(); | 18 testRunner.dumpAsText(); |
19 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 19 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
20 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 20 window.internals.settings.setSpatialNavigationEnabled(true); |
21 testRunner.waitUntilDone(); | 21 testRunner.waitUntilDone(); |
22 } | 22 } |
23 | 23 |
24 function runTest() | 24 function runTest() |
25 { | 25 { |
26 // starting the test itself: get to a known place. | 26 // starting the test itself: get to a known place. |
27 document.getElementById("start").focus(); | 27 document.getElementById("start").focus(); |
28 | 28 |
29 initTest(resultMap, testCompleted); | 29 initTest(resultMap, testCompleted); |
30 } | 30 } |
(...skipping 23 matching lines...) Expand all Loading... |
54 <a href="#" id="e3">AA AAAAAAAAAA AAAAAAAAAA</a> | 54 <a href="#" id="e3">AA AAAAAAAAAA AAAAAAAAAA</a> |
55 </div> | 55 </div> |
56 | 56 |
57 | 57 |
58 | 58 |
59 | 59 |
60 <div id="console"></div> | 60 <div id="console"></div> |
61 This test is testing that we can handle 2 inline elements in the same line. | 61 This test is testing that we can handle 2 inline elements in the same line. |
62 </body> | 62 </body> |
63 </html> | 63 </html> |
OLD | NEW |