3 <script src="../resources/js-test.js"></script>
7 testRunner.dumpAsText();
11 <!-- Test image map -->
12 <map id="apple" name="imagemap1">
13 <area shape="rect" coords="10,10,133,72" href="http://www.apple.com" title="Link1" />
14 <area shape="rect" coords="12,74,134,88" href="http://www.apple.com" title="Link2" />
15 <area shape="rect" coords="11,91,133,105" href="http://www.apple.com" title="Link3" />
16 <area shape="default" nohref="nohref" alt="" />
19 <img src="resources/cake.png" border="0" align="left" usemap="#imagemap1" vspace="1">
21 <p id="description"></p>
22 <div id="console"></div>
25 description("This tests that you can reach the links within an image map.");
27 if (window.accessibilityController) {
28 document.getElementById("body").focus();
30 var body = accessibilityController.focusedElement;
31 shouldBe("body.childAtIndex(3).role", "'AXRole: AXLink'");
32 shouldBe("body.childAtIndex(3).title", "'AXTitle: Link1'");
34 shouldBe("body.childAtIndex(4).role", "'AXRole: AXLink'");
35 shouldBe("body.childAtIndex(4).title", "'AXTitle: Link2'");
37 shouldBe("body.childAtIndex(5).role", "'AXRole: AXLink'");
38 shouldBe("body.childAtIndex(5).title", "'AXTitle: Link3'");