1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../resources/js-test.js"></script>
9 <div role=
"listitem" aria-label=
"item 1"><img src='#' width=
100 height=
100></div>
10 <div role=
"listitem" aria-label=
"item 2"><img src='#' width=
100 height=
100></div>
13 <p id=
"description"></p>
14 <div id=
"console"></div>
18 description("This tests that the ARIA roles of list and listitem map correctly to Mac accessibility roles.");
20 if (window
.accessibilityController
) {
22 // this text field should be required.
23 document
.getElementById("body").focus();
24 var obj
= accessibilityController
.focusedElement
;
26 debug("obj.childAtIndex(0).role = " + obj
.childAtIndex(0).role
);
27 debug("obj.childAtIndex(0).childAtIndex(0).role = " + obj
.childAtIndex(0).childAtIndex(0).role
);
28 debug("obj.childAtIndex(0).childAtIndex(1).role = " + obj
.childAtIndex(0).childAtIndex(1).role
);