| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script src="resources/spatial-navigation-utils.js"></script> | 5 <script src="resources/spatial-navigation-utils.js"></script> |
| 6 <script type="application/javascript"> | 6 <script type="application/javascript"> |
| 7 | 7 |
| 8 var resultMap = [ | 8 var resultMap = [ |
| 9 ["Down", "3"], | 9 ["Down", "3"], |
| 10 ["Up", "start"], | 10 ["Up", "start"], |
| 11 ["DONE", "DONE"] | 11 ["DONE", "DONE"] |
| 12 ]; | 12 ]; |
| 13 | 13 |
| 14 if (window.testRunner) { | 14 if (window.testRunner) { |
| 15 testRunner.dumpAsText(); | 15 testRunner.dumpAsText(); |
| 16 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 16 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 17 window.internals.settings.setSpatialNavigationEnabled(true); | 17 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
| 18 testRunner.waitUntilDone(); | 18 testRunner.waitUntilDone(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 function runTest() | 21 function runTest() |
| 22 { | 22 { |
| 23 // starting the test itself: get to a known place. | 23 // starting the test itself: get to a known place. |
| 24 document.getElementById("start").focus(); | 24 document.getElementById("start").focus(); |
| 25 | 25 |
| 26 initTest(resultMap, testCompleted); | 26 initTest(resultMap, testCompleted); |
| 27 } | 27 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 <a id="start" href="a"><img src="resources/green.png" width=50px height=50px
></a> | 46 <a id="start" href="a"><img src="resources/green.png" width=50px height=50px
></a> |
| 47 <div> | 47 <div> |
| 48 <img src="resources/green.png" width=200px height=200px usemap="#othermap"
><a id="6" href="a"><img src="resources/green.png" width=50px height=50px></a> | 48 <img src="resources/green.png" width=200px height=200px usemap="#othermap"
><a id="6" href="a"><img src="resources/green.png" width=50px height=50px></a> |
| 49 </div> | 49 </div> |
| 50 <a id="3" href="a"><img src="resources/green.png" width=50px height=50px></a
> | 50 <a id="3" href="a"><img src="resources/green.png" width=50px height=50px></a
> |
| 51 <div id="console"></div> | 51 <div id="console"></div> |
| 52 <div>This test tests that areas of an imagemap without an image using it, ar
e not focusable, thus can not be reached with spatial navigation.</div> | 52 <div>This test tests that areas of an imagemap without an image using it, ar
e not focusable, thus can not be reached with spatial navigation.</div> |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| 55 | 55 |
| OLD | NEW |