1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../resources/js-test.js"></script>
8 <img id=
"image" usemap=
"#map" src=
"data:image/gif;base64,R0lGODlhAQABAIAAAOTm7AAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" width=
"100" height=
"50" alt=
"">
9 <map name=
"map" id=
"map">
10 <area tabindex=
"0" role=
"button" shape=
"rect" coords=
"0,0,50,50" href=
"#" title=
"Example 1">
11 <area tabindex=
"0" role=
"button" shape=
"rect" coords=
"50,0,100,50" href=
"#" title=
"Example 2">
14 <p id=
"description"></p>
15 <div id=
"console"></div>
19 description("This tests that you can set an ARIA role on image map elements.");
21 if (window
.accessibilityController
) {
22 document
.body
.focus();
23 var group
= accessibilityController
.focusedElement
.childAtIndex(0);
24 shouldBe("group.childAtIndex(0).role", "'AXRole: AXButton'");
25 shouldBe("group.childAtIndex(1).role", "'AXRole: AXButton'");