Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / crashing-a-tag-in-map.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <div class="body">
9
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="">
16 </map></div>
17
18 <p id="description"></p>
19 <div id="console"></div>
20
21 <script>
22
23     description("This tests that a hit test on a image map that has areas and anchors does not crash");
24
25     if (window.accessibilityController) {
26
27           var body = document.getElementById("body");
28           body.focus();
29
30           // test fails if it crashes here
31           var control = accessibilityController.focusedElement.elementAtPoint(100, 100);
32     }
33
34 </script>
35
36 <script src="../resources/js-test-post.js"></script>
37 </body>
38 </html>