| 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: 40px; | 9 height: 40px; |
| 10 width: 80px; | 10 width: 80px; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 ["Up", "e1"], | 53 ["Up", "e1"], |
| 54 ["Right", "e2"], | 54 ["Right", "e2"], |
| 55 ["Down", "e3"], | 55 ["Down", "e3"], |
| 56 ["Down", "e4"], | 56 ["Down", "e4"], |
| 57 ["Right", "e5"], | 57 ["Right", "e5"], |
| 58 ["DONE", "DONE"] | 58 ["DONE", "DONE"] |
| 59 ]; | 59 ]; |
| 60 | 60 |
| 61 if (window.testRunner) { | 61 if (window.testRunner) { |
| 62 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 62 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 63 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 63 window.internals.settings.setSpatialNavigationEnabled(true); |
| 64 } | 64 } |
| 65 | 65 |
| 66 function runTest() | 66 function runTest() |
| 67 { | 67 { |
| 68 // starting the test itself: get to a known place. | 68 // starting the test itself: get to a known place. |
| 69 document.getElementById("e1").focus(); | 69 document.getElementById("e1").focus(); |
| 70 | 70 |
| 71 initTest(resultMap, finishJSTest); | 71 initTest(resultMap, finishJSTest); |
| 72 } | 72 } |
| 73 </script> | 73 </script> |
| 74 </body> | 74 </body> |
| 75 </html> | 75 </html> |
| OLD | NEW |