| OLD | NEW |
| 1 <html> | 1 <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 <script type="application/javascript"> | 5 <script type="application/javascript"> |
| 6 | 6 |
| 7 var resultMap = [ | 7 var resultMap = [ |
| 8 ["Down", "s22"], | 8 ["Down", "s22"], |
| 9 ["Down", "p11"], | 9 ["Down", "p11"], |
| 10 ["Down", "s23"], | 10 ["Down", "s23"], |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 ["Right", "s22"], | 22 ["Right", "s22"], |
| 23 ["Right", "p11"], | 23 ["Right", "p11"], |
| 24 ["Right", "p21"], | 24 ["Right", "p21"], |
| 25 ["Up", "start"], | 25 ["Up", "start"], |
| 26 ["DONE", "DONE"] | 26 ["DONE", "DONE"] |
| 27 ]; | 27 ]; |
| 28 | 28 |
| 29 if (window.testRunner) { | 29 if (window.testRunner) { |
| 30 testRunner.dumpAsText(); | 30 testRunner.dumpAsText(); |
| 31 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 31 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 32 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); | 32 window.internals.settings.setSpatialNavigationEnabled(true); |
| 33 testRunner.waitUntilDone(); | 33 testRunner.waitUntilDone(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 function runTest() | 36 function runTest() |
| 37 { | 37 { |
| 38 // starting the test itself: get to a known place. | 38 // starting the test itself: get to a known place. |
| 39 document.getElementById("start").focus(); | 39 document.getElementById("start").focus(); |
| 40 | 40 |
| 41 initTest(resultMap, testCompleted); | 41 initTest(resultMap, testCompleted); |
| 42 } | 42 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 <div tabindex="1" id="start" class="simple"><img src="resources/green.png" width
=160px height=60px></div> | 79 <div tabindex="1" id="start" class="simple"><img src="resources/green.png" width
=160px height=60px></div> |
| 80 <div tabindex="2" id="s22" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 80 <div tabindex="2" id="s22" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 81 <div tabindex="3" id="s23" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 81 <div tabindex="3" id="s23" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 82 <div tabindex="4" id="s24" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 82 <div tabindex="4" id="s24" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 83 <div tabindex="5" id="s25" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 83 <div tabindex="5" id="s25" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 84 </td></tr></table> | 84 </td></tr></table> |
| 85 <div id="console"></div> | 85 <div id="console"></div> |
| 86 This test is testing that we can prefer the elements with higher Z indexes. | 86 This test is testing that we can prefer the elements with higher Z indexes. |
| 87 </body> | 87 </body> |
| 88 </html> | 88 </html> |
| OLD | NEW |