1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../fast/js/resources/js-test-pre.js"></script>
8 <div role="radiobuttongroup">
9 <div role="checkbox" id="check1" tabindex="0" aria-checked="true">One</div>
10 <div role="checkbox" id="check2" tabindex="0">Two</div>
11 <div role="checkbox" id="check3" 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 checkboxes use accessible name computation.");
21 if (window.accessibilityController) {
23 var checkbox = document.getElementById("check1");
25 checkbox = accessibilityController.focusedElement;
26 shouldBe("checkbox.title", "'AXTitle: One'");
28 checkbox = document.getElementById("check2");
30 checkbox = accessibilityController.focusedElement;
31 shouldBe("checkbox.title", "'AXTitle: Two'");
33 checkbox = document.getElementById("check3");
35 checkbox = accessibilityController.focusedElement;
36 shouldBe("checkbox.title", "'AXTitle: Three'");
41 <script src="../fast/js/resources/js-test-post.js"></script>