blob: e648b59a60e86d2dcf0ae6d1f794f18013a2fe7f [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body id="body">
<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>
</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that ARIA checkboxes use accessible name computation.");
if (window.accessibilityController) {
var checkbox = accessibilityController.accessibleElementById("check1");
debug("checkbox.title is " + checkbox.title);
checkbox = accessibilityController.accessibleElementById("check2");
debug("checkbox.title is " + checkbox.title);
checkbox = accessibilityController.accessibleElementById("check3");
debug("checkbox.title is " + checkbox.title);
}
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>