Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / image-map2.html
blob692239609bac7c027cc62543b3883a12d75833f5
1 <html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 <body id="body">
8 <div id="result"></div>
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>
16 <img src="resources/cake.png" border="0" align="left" usemap="#imagemap1" vspace="1">
19 <script>
20 if (window.accessibilityController) {
21 var result = document.getElementById("result");
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";
29 </script>
30 </body>
31 </html>