blob: 05f7a1b00053202e9f7f1c3f3f4758fd2193ba9a [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body id="body">
<span tabindex="0" id="test" role="unknownrole switch checkbox" aria-checked="true">test</span>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that aria fallback roles work correctly.");
if (window.accessibilityController) {
if (window.accessibilityController) {
var test = document.getElementById("test");
test.focus();
test = accessibilityController.focusedElement;
debug("Role should be: " + test.role);
}
}
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>