1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
8 <div role="radiogroup">
9 <div role="radio" tabindex="0" aria-checked="true">One</div>
10 <div role="radio" tabindex="0">Two</div>
11 <div role="radio" tabindex="0" id="foo" aria-labelledby="foo">Three</div>
14 <p id="description"></p>
15 <div id="console"></div>
19 description("This tests that aria radio buttons use the text inside of them as the title.");
21 if (window.accessibilityController) {
23 // this text field should be required.
24 document.getElementById("body").focus();
25 var obj = accessibilityController.focusedElement.childAtIndex(0);
27 var succeeded = obj.childAtIndex(0).title == "AXTitle: One";
28 shouldBe("succeeded", "true");
30 var succeeded = obj.childAtIndex(1).title == "AXTitle: Two";
31 shouldBe("succeeded", "true");
33 var succeeded = obj.childAtIndex(2).title == "AXTitle: Three";
34 shouldBe("succeeded", "true");
39 <script src="../../../fast/js/resources/js-test-post.js"></script>