blob: 5d66d5458b7cb5da867ea0a3b15b67563e15030c [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">
<div tabindex="0" id="textfield" role="textbox" aria-multiline="false">a</div>
<div tabindex="0" id="textarea" role="textbox" aria-multiline="true">b</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that aria-multiline will change the role of a text control from a text field to a text area.");
if (window.accessibilityController) {
document.getElementById("textfield").focus();
shouldBe("accessibilityController.focusedElement.role", "'AXRole: AXTextField'");
document.getElementById("textarea").focus();
shouldBe("accessibilityController.focusedElement.role", "'AXRole: AXTextArea'");
}
</script>
<script src="../../../fast/js/resources/js-test-post.js"></script>
</body>
</html>