| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 ["Right", "e3"], | 44 ["Right", "e3"], |
| 45 ["Up", "e3"], | 45 ["Up", "e3"], |
| 46 ["Left", "e2"], | 46 ["Left", "e2"], |
| 47 ["Up", "e2"], | 47 ["Up", "e2"], |
| 48 ["Left", "e1"], | 48 ["Left", "e1"], |
| 49 ["DONE", "DONE"] | 49 ["DONE", "DONE"] |
| 50 ]; | 50 ]; |
| 51 | 51 |
| 52 if (window.testRunner) { | 52 if (window.testRunner) { |
| 53 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 53 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 54 window.internals.settings.setSpatialNavigationEnabled(true); | 54 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
| 55 } | 55 } |
| 56 | 56 |
| 57 function runTest() | 57 function runTest() |
| 58 { | 58 { |
| 59 // starting the test itself: get to a known place. | 59 // starting the test itself: get to a known place. |
| 60 document.getElementById("e1").focus(); | 60 document.getElementById("e1").focus(); |
| 61 | 61 |
| 62 initTest(resultMap, finishJSTest); | 62 initTest(resultMap, finishJSTest); |
| 63 } | 63 } |
| 64 </script> | 64 </script> |
| 65 </body> | 65 </body> |
| 66 </html> | 66 </html> |
| OLD | NEW |