| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <div role="radiobuttongroup"> |
| <div role="checkbox" id="check1" tabindex="0" aria-checked="true">One</div> |
| <div role="checkbox" id="check2" tabindex="0">Two</div> |
| <div role="checkbox" id="check3" tabindex="0" id="foo" aria-labelledby="foo">Three</div> |
| description("This tests that ARIA checkboxes use accessible name computation."); |
| if (window.accessibilityController) { |
| var checkbox = document.getElementById("check1"); |
| checkbox = accessibilityController.focusedElement; |
| debug("checkbox.title is " + checkbox.title); |
| checkbox = document.getElementById("check2"); |
| checkbox = accessibilityController.focusedElement; |
| debug("checkbox.title is " + checkbox.title); |
| checkbox = document.getElementById("check3"); |
| checkbox = accessibilityController.focusedElement; |
| debug("checkbox.title is " + checkbox.title); |
| <script src="../resources/js-test-post.js"></script> |