1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
8 <div tabindex=0 id="group" role="group" aria-owns="extra extra2">
14 <div id="extra" role="button">BUTTON</div>
15 <div id="extra2" role="radio">RADIO BUTTON</div>
17 <p id="description"></p>
18 <div id="console"></div>
22 description("This tests that aria-owns correctly exposes AXOwns and correctly returns the right elements");
24 if (window.accessibilityController) {
26 var group = document.getElementById("group");
28 group = accessibilityController.focusedElement;
29 shouldBe("group.ariaOwnsElementAtIndex(0).role", "'AXRole: AXButton'");
30 shouldBe("group.ariaOwnsElementAtIndex(0).title", "'AXTitle: BUTTON'");
31 shouldBe("group.ariaOwnsElementAtIndex(1).role", "'AXRole: AXRadioButton'");
32 shouldBe("group.ariaOwnsElementAtIndex(1).title", "'AXTitle: RADIO BUTTON'");
37 <script src="../../../fast/js/resources/js-test-post.js"></script>