| <map name="map" title="map" id="firstmap"> |
| <area shape="rect" coords="20,20,70,70" href="#" id="1"> |
| <area shape="rect" coords="20,130,70,180" id="2"> |
| </map> |
| |
| <a id="start" href="a"><img src="resources/green.png" width=50px height=50px></a> |
| <div> |
| <img src="resources/green.png" width=200px height=200px usemap="#map"><a id="6" href="a"><img src="resources/green.png" width=50px height=50px></a> |
| </div> |
| <a id="3" href="a"><img src="resources/green.png" width=50px height=50px></a> |
| |
| <p>This test tests that areas of an imagemap without an href are not focusable, thus can not be reached with spatial navigation.</p> |
| |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="resources/snav-testharness.js"></script> |
| <script> |
| var resultMap = [ |
| ["Down", "1"], |
| ["Down", "3"], |
| ["Up", "1"], |
| ["Up", "start"], |
| ]; |
| |
| // Start at a known place. |
| document.getElementById("start").focus(); |
| snav.assertFocusMoves(resultMap); |
| </script> |