1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <link rel="stylesheet" href="../../../fast/js/resources/js-test-style.css">
6 var successfullyParsed = false;
8 <script src="../../../fast/js/resources/js-test-pre.js"></script>
12 <div tabindex=0 id="group" role="group" aria-owns="extra extra2">
18 <div id="extra" role="button">BUTTON</div>
19 <div id="extra2" role="radio">RADIO BUTTON</div>
21 <p id="description"></p>
22 <div id="console"></div>
26 description("This tests that aria-owns correctly exposes AXOwns and correctly returns the right elements");
28 if (window.accessibilityController) {
30 var group = document.getElementById("group");
32 group = accessibilityController.focusedElement;
33 shouldBe("group.ariaOwnsElementAtIndex(0).role", "'AXRole: AXButton'");
34 shouldBe("group.ariaOwnsElementAtIndex(0).title", "'AXTitle: BUTTON'");
35 shouldBe("group.ariaOwnsElementAtIndex(1).role", "'AXRole: AXRadioButton'");
36 shouldBe("group.ariaOwnsElementAtIndex(1).title", "'AXTitle: RADIO BUTTON'");
39 successfullyParsed = true;
42 <script src="../../../fast/js/resources/js-test-post.js"></script>