| 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", "p11"], | 9 ["Down", "p11"], |
| 10 ["Down", "s23"], |
| 9 ["Down", "p12"], | 11 ["Down", "p12"], |
| 12 ["Down", "s24"], |
| 10 ["Down", "s25"], | 13 ["Down", "s25"], |
| 14 ["Up", "s24"], |
| 11 ["Up", "p12"], | 15 ["Up", "p12"], |
| 12 ["Left", "s13"], | 16 ["Right", "p22"], |
| 17 ["Left", "p12"], |
| 18 ["Left", "s24"], |
| 19 ["Left", "s14"], |
| 20 ["Up", "s13"], |
| 13 ["Up", "s12"], | 21 ["Up", "s12"], |
| 22 ["Right", "s22"], |
| 14 ["Right", "p11"], | 23 ["Right", "p11"], |
| 15 ["Right", "p21"], | 24 ["Right", "p21"], |
| 25 ["Up", "s22"], |
| 16 ["Up", "start"], | 26 ["Up", "start"], |
| 17 ["DONE", "DONE"] | 27 ["DONE", "DONE"] |
| 18 ]; | 28 ]; |
| 19 | 29 |
| 20 if (window.testRunner) { | 30 if (window.testRunner) { |
| 21 testRunner.dumpAsText(); | 31 testRunner.dumpAsText(); |
| 22 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 32 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 23 window.internals.settings.setSpatialNavigationEnabled(true); | 33 window.internals.settings.setSpatialNavigationEnabled(true); |
| 24 testRunner.waitUntilDone(); | 34 testRunner.waitUntilDone(); |
| 25 } | 35 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 <div tabindex="4" id="s14" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 77 <div tabindex="4" id="s14" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 68 <div tabindex="5" id="s15" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 78 <div tabindex="5" id="s15" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 69 </td><td> | 79 </td><td> |
| 70 <div tabindex="1" id="start" class="simple"><img src="resources/green.png" width
=160px height=60px></div> | 80 <div tabindex="1" id="start" class="simple"><img src="resources/green.png" width
=160px height=60px></div> |
| 71 <div tabindex="2" id="s22" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 81 <div tabindex="2" id="s22" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 72 <div tabindex="3" id="s23" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 82 <div tabindex="3" id="s23" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 73 <div tabindex="4" id="s24" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 83 <div tabindex="4" id="s24" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 74 <div tabindex="5" id="s25" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> | 84 <div tabindex="5" id="s25" class="simple"><img src="resources/green.png" width=1
60px height=60px></div> |
| 75 </td></tr></table> | 85 </td></tr></table> |
| 76 <div id="console"></div> | 86 <div id="console"></div> |
| 77 This test is testing that we prefer focusable elements with absolute positioning
over other elements. | 87 This test is testing that we can prefer the elements with higher Z indexes. |
| 78 </body> | 88 </body> |
| 79 </html> | 89 </html> |
| OLD | NEW |