| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| var successfullyParsed = false; |
| <script src="../../../fast/js/resources/js-test-pre.js"></script> |
| <div tabindex="0" id="textfield" role="textbox" aria-multiline="false">a</div> |
| <div tabindex="0" id="textarea" role="textbox" aria-multiline="true">b</div> |
| 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'"); |
| successfullyParsed = true; |
| <script src="../../../fast/js/resources/js-test-post.js"></script> |