blob: 74460e19d55c5d7654cdf34c2c3db6db11afafc0 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../fast/js/resources/js-test-pre.js"></script>
</head>
<body id="body">
<div class="body">
<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">
<a href="test.html"></a>
<area shape="default" nohref="nohref" alt="">
</map></div>
<p id="description"></p>
<div id="console"></div>
<script>
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");
body.focus();
// test fails if it crashes here
var control = accessibilityController.focusedElement.elementAtPoint(100, 100);
}
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>
</html>