Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / image-map2.html
1 <html>
2 <script>
3     if (window.testRunner)
4         testRunner.dumpAsText();
5 </script>
6 <body id="body">
7     
8     <div id="result"></div>
9     
10     <!-- Test image map -->
11     <map id="apple" name="imagemap1">
12       <area shape="rect" coords="10,10,133,72" href="http://www.apple.com" alt="Link1" />
13       <area shape="rect" coords="12,74,134,88" href="http://www.apple.com" alt="Link2" />
14     </map>
15
16     <img src="resources/cake.png"  border="0" align="left" usemap="#imagemap1" vspace="1">
17
18      
19     <script>
20         if (window.accessibilityController) {
21             var result = document.getElementById("result");
22
23             var body = document.getElementById("body");
24             body.focus();
25             result.innerText += "Image map - test 2 - 2 Links (alt tags)\n";
26             result.innerText += "----------------------\n";
27             result.innerText += accessibilityController.focusedElement.attributesOfChildren() + "\n\n"; 
28         }
29     </script>
30 </body>
31 </html>