| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <img src="resources/cake.png" height="500" width="613" border="0" usemap="#img"> |
| <map id="img" name="img"> |
| <area shape="rect" coords="97,45,5,5" href="test.html" alt=""> |
| <area shape="rect" coords="447,45,5,5" href="test.html"> |
| <area shape="default" nohref="nohref" alt=""> |
| description("This tests that a hit test on a image map that has areas and anchors does not crash"); |
| if (window.accessibilityController) { |
| var body = document.getElementById("body"); |
| // test fails if it crashes here |
| var control = accessibilityController.focusedElement.elementAtPoint(100, 100); |
| <script src="../resources/js-test-post.js"></script> |