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 role=
"radiobuttongroup">
13 <div role=
"checkbox" id=
"check1" tabindex=
"0" aria-checked=
"true">One
</div>
14 <div role=
"checkbox" id=
"check2" tabindex=
"0">Two
</div>
15 <div role=
"checkbox" id=
"check3" tabindex=
"0" id=
"foo" aria-labelledby=
"foo">Three
</div>
18 <p id=
"description"></p>
19 <div id=
"console"></div>
23 description("This tests that ARIA checkboxes use accessible name computation.");
25 if (window
.accessibilityController
) {
27 var checkbox
= document
.getElementById("check1");
29 checkbox
= accessibilityController
.focusedElement
;
30 shouldBe("checkbox.title", "'AXTitle: One'");
32 checkbox
= document
.getElementById("check2");
34 checkbox
= accessibilityController
.focusedElement
;
35 shouldBe("checkbox.title", "'AXTitle: Two'");
37 checkbox
= document
.getElementById("check3");
39 checkbox
= accessibilityController
.focusedElement
;
40 shouldBe("checkbox.title", "'AXTitle: Three'");
43 successfullyParsed
= true;
46 <script src=
"../fast/js/resources/js-test-post.js"></script>