OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE 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 </head> | 5 </head> |
6 <style> | 6 <style> |
7 body a { | 7 body a { |
8 position: absolute; | 8 position: absolute; |
9 height: 100px; | 9 height: 100px; |
10 width: 100px; | 10 width: 100px; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Horizontal: | 65 // Horizontal: |
66 ["Right", "e5"], | 66 ["Right", "e5"], |
67 ["Right", "e6"], | 67 ["Right", "e6"], |
68 ["Left", "e5"], | 68 ["Left", "e5"], |
69 ["Left", "e4"], | 69 ["Left", "e4"], |
70 ["DONE", "DONE"] | 70 ["DONE", "DONE"] |
71 ]; | 71 ]; |
72 | 72 |
73 if (window.testRunner) { | 73 if (window.testRunner) { |
74 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 74 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
75 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 75 window.internals.settings.setSpatialNavigationEnabled(true); |
76 } | 76 } |
77 | 77 |
78 function runTest() | 78 function runTest() |
79 { | 79 { |
80 // starting the test itself: get to a known place. | 80 // starting the test itself: get to a known place. |
81 document.getElementById("e1").focus(); | 81 document.getElementById("e1").focus(); |
82 | 82 |
83 initTest(resultMap, finishJSTest); | 83 initTest(resultMap, finishJSTest); |
84 } | 84 } |
85 </script> | 85 </script> |
86 </body> | 86 </body> |
87 </html> | 87 </html> |
OLD | NEW |