1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
8 <div tabindex="0" id="textfield" role="textbox" aria-multiline="false">a</div>
9 <div tabindex="0" id="textarea" role="textbox" aria-multiline="true">b</div>
11 <p id="description"></p>
12 <div id="console"></div>
16 description("This tests that aria-multiline will change the role of a text control from a text field to a text area.");
18 if (window.accessibilityController) {
20 document.getElementById("textfield").focus();
21 shouldBe("accessibilityController.focusedElement.role", "'AXRole: AXTextField'");
23 document.getElementById("textarea").focus();
24 shouldBe("accessibilityController.focusedElement.role", "'AXRole: AXTextArea'");
29 <script src="../../../fast/js/resources/js-test-post.js"></script>