| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <!-- | 2 <!-- |
| 3 This test ensures the correctness the following Spatial Navigation | 3 This test ensures the correctness the following Spatial Navigation |
| 4 (SNav) algorithm features. | 4 (SNav) algorithm features. |
| 5 | 5 |
| 6 1) There is no unit overflow in the Spatial Navigation algorithm while | 6 1) There is no unit overflow in the Spatial Navigation algorithm while |
| 7 calculating the best node candidate to move focus to. To test that this | 7 calculating the best node candidate to move focus to. To test that this |
| 8 page positions some elements 10000000 pixels far from each other (distanc
e | 8 page positions some elements 10000000 pixels far from each other (distanc
e |
| 9 that can considered large enough for most of the Web Pages on the | 9 that can considered large enough for most of the Web Pages on the |
| 10 Internet). | 10 Internet). |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 ]; | 35 ]; |
| 36 | 36 |
| 37 var resultMap2 = [ | 37 var resultMap2 = [ |
| 38 ["Down", "end"], | 38 ["Down", "end"], |
| 39 ["DONE", "DONE"] | 39 ["DONE", "DONE"] |
| 40 ]; | 40 ]; |
| 41 | 41 |
| 42 if (window.testRunner) { | 42 if (window.testRunner) { |
| 43 testRunner.dumpAsText(); | 43 testRunner.dumpAsText(); |
| 44 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 44 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 45 window.internals.settings.setSpatialNavigationEnabled(true); | 45 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
| 46 testRunner.waitUntilDone(); | 46 testRunner.waitUntilDone(); |
| 47 } | 47 } |
| 48 | 48 |
| 49 function runTest() | 49 function runTest() |
| 50 { | 50 { |
| 51 // starting the test itself: get to a known place. | 51 // starting the test itself: get to a known place. |
| 52 document.getElementById("start").focus(); | 52 document.getElementById("start").focus(); |
| 53 | 53 |
| 54 setTimeout(step1 , 0); | 54 setTimeout(step1 , 0); |
| 55 } | 55 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 </script> | 90 </script> |
| 91 </head> | 91 </head> |
| 92 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> | 92 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> |
| 93 <a id="start" href="a">Start</a> | 93 <a id="start" href="a">Start</a> |
| 94 <div style='margin-top:100000000px'> | 94 <div style='margin-top:100000000px'> |
| 95 <a id="end" href="a">End</a> | 95 <a id="end" href="a">End</a> |
| 96 </div> | 96 </div> |
| 97 <div id="console"></div> | 97 <div id="console"></div> |
| 98 </body> | 98 </body> |
| 99 </html> | 99 </html> |
| OLD | NEW |