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