1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../fast/js/resources/js-test-pre.js"></script>
10 <img src="resources/cake.png" height="500" width="613" border="0" usemap="#img">
11 <map id="img" name="img">
12 <area shape="rect" coords="97,45,5,5" href="test.html" alt="">
13 <area shape="rect" coords="447,45,5,5" href="test.html">
14 <a href="test.html"></a>
15 <area shape="default" nohref="nohref" alt="">
18 <p id="description"></p>
19 <div id="console"></div>
23 description("This tests that a hit test on a image map that has areas and anchors does not crash");
25 if (window.accessibilityController) {
27 var body = document.getElementById("body");
30 // test fails if it crashes here
31 var control = accessibilityController.focusedElement.elementAtPoint(100, 100);
36 <script src="../fast/js/resources/js-test-post.js"></script>