JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / aria-multiline.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
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>
10
11 <p id="description"></p>
12 <div id="console"></div>
13
14 <script>
15
16     description("This tests that aria-multiline will change the role of a text control from a text field to a text area.");
17
18     if (window.accessibilityController) {
19
20         document.getElementById("textfield").focus();
21         shouldBe("accessibilityController.focusedElement.role", "'AXRole: AXTextField'");
22
23         document.getElementById("textarea").focus();
24         shouldBe("accessibilityController.focusedElement.role", "'AXRole: AXTextArea'");
25     }
26
27 </script>
28
29 <script src="../../../fast/js/resources/js-test-post.js"></script>
30 </body>
31 </html>