| <script src="../../resources/js-test-pre.js"></script> |
| <script src="resources/spatial-navigation-utils.js"></script> |
| <script type="application/javascript"> |
| testRunner.setSpatialNavigationEnabled(true); |
| testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| testRunner.waitUntilDone(); |
| // starting the test itself: get to a known place. |
| document.getElementById("start").focus(); |
| initTest(resultMap, testCompleted); |
| <script src="../resources/js-test-post.js"></script> |
| <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> |
| <map name="map" title="map" id="firstmap"> |
| <area shape="circle" coords="45,45,25" href="#" id="1"> |
| <area shape="rect" coords="45,60,95,110" href="#" id="2"> |
| <area shape="poly" coords="80,20,130,20,130,180,30,180,30,130,80,130" href="#" id="3"> |
| <area shape="default" href="#" id="4"> |
| <a id="start" href="a"><img src="resources/green.png" width=50px height=50px></a> |
| <img src="resources/green.png" width=200px height=200px usemap="#map"> |
| <a id="5" href="a"><img src="resources/green.png" width=50px height=50px></a> |
| <div>This test tests that areas of an imagemap can be reached with spatial navigation even if they are overlapped.</div> |