| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <!-- | 2 <!-- |
| 3 This test ensures the correctness of the "Fully aligned" precedence | 3 This test ensures the correctness of the "Fully aligned" precedence |
| 4 logic implemented by Spatial Navigation algorithm in an horizontal direction
: | 4 logic implemented by Spatial Navigation algorithm in an horizontal direction
: |
| 5 targets whose middle falls between the top and bottom of the current focused | 5 targets whose middle falls between the top and bottom of the current focused |
| 6 element are preferably to move focus to, even if it is not the shortest dist
ance. | 6 element are preferably to move focus to, even if it is not the shortest dist
ance. |
| 7 | 7 |
| 8 * Pre-conditions: | 8 * Pre-conditions: |
| 9 1) DRT support for SNav enable/disable. | 9 1) DRT support for SNav enable/disable. |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 ["Down", "25"], | 47 ["Down", "25"], |
| 48 ["Right", "26"], | 48 ["Right", "26"], |
| 49 ["Down", "27"], | 49 ["Down", "27"], |
| 50 ["Down", "end"], | 50 ["Down", "end"], |
| 51 ["DONE", "DONE"] | 51 ["DONE", "DONE"] |
| 52 ]; | 52 ]; |
| 53 | 53 |
| 54 if (window.testRunner) { | 54 if (window.testRunner) { |
| 55 testRunner.dumpAsText(); | 55 testRunner.dumpAsText(); |
| 56 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 56 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 57 window.internals.settings.setSpatialNavigationEnabled(true); | 57 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
| 58 testRunner.waitUntilDone(); | 58 testRunner.waitUntilDone(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 function runTest() | 61 function runTest() |
| 62 { | 62 { |
| 63 // starting the test itself: get to a known place. | 63 // starting the test itself: get to a known place. |
| 64 document.getElementById("start").focus(); | 64 document.getElementById("start").focus(); |
| 65 | 65 |
| 66 initTest(resultMap, testCompleted); | 66 initTest(resultMap, testCompleted); |
| 67 } | 67 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 89 <a id="19" href="a">How Now Brow</a> &nbs
p;
<a id="20" hr
ef="p">n Cow</a><br> | 89 <a id="19" href="a">How Now Brow</a> &nbs
p;
<a id="20" hr
ef="p">n Cow</a><br> |
| 90 <a id="21" href="a">How Now Brown</a>  
; &nb
sp; <a id="22" href="p">Cow</a><br> | 90 <a id="21" href="a">How Now Brown</a>  
; &nb
sp; <a id="22" href="p">Cow</a><br> |
| 91 <a id="23" href="a">How Now Brown C</a> &nb
sp;
<a id="24" href="p">ow</a><br> | 91 <a id="23" href="a">How Now Brown C</a> &nb
sp;
<a id="24" href="p">ow</a><br> |
| 92 <a id="25" href="a">How Now Brown Co</a> &n
bsp;
<a id="26" href="p">w</a><br> | 92 <a id="25" href="a">How Now Brown Co</a> &n
bsp;
<a id="26" href="p">w</a><br> |
| 93 <a id="27" href="a">How Now Brown Cow</a><br><br> | 93 <a id="27" href="a">How Now Brown Cow</a><br><br> |
| 94 <a id="end" href="a">test<br></a> | 94 <a id="end" href="a">test<br></a> |
| 95 <div id="console"></div> | 95 <div id="console"></div> |
| 96 </body> | 96 </body> |
| 97 </html> | 97 </html> |
| 98 | 98 |
| OLD | NEW |