1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../fast/js/resources/js-test-pre.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 shouldBe("obj.childAtIndex(0).role", "'AXRole: AXList'");
27 shouldBe("obj.childAtIndex(0).childAtIndex(0).role", "'AXRole: AXGroup'");
28 shouldBe("obj.childAtIndex(0).childAtIndex(1).role", "'AXRole: AXGroup'");
33 <script src="../fast/js/resources/js-test-post.js"></script>