blob: 8ae139add34984e05233578b3b37663c2a3936e6 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../fast/js/resources/js-test-pre.js"></script>
</head>
<body id="body">
<input type="text" id="text1" required>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that the required attribute is returned correctly through accessibility.");
if (window.accessibilityController) {
document.getElementById("text1").focus();
shouldBeTrue("accessibilityController.focusedElement.isRequired");
document.getElementById("text1").removeAttribute("required");
shouldBeFalse("accessibilityController.focusedElement.isRequired");
}
</script>
<script src="../../../fast/js/resources/js-test-post.js"></script>
</body>
</html>