JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / live-region-on-span.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 id="div" tabindex="0">
9    <span aria-live="polite" aria-relevant="all">text</span>
10 </div>
11
12 <p id="description"></p>
13 <div id="console"></div>
14
15 <script>
16
17     description("This tests that if aria-live is on a <span>, that that <span> is not ignored, and that is has the appropriate aria live information.");
18
19     if (window.accessibilityController) {
20
21           document.getElementById("div").focus();
22           var divElement = accessibilityController.focusedElement;
23           shouldBe("divElement.childAtIndex(0).role", "'AXRole: AXGroup'");
24           shouldBe("divElement.childAtIndex(0).childAtIndex(0).role", "'AXRole: AXStaticText'");
25
26           shouldBe("divElement.childAtIndex(0).isAttributeSupported('AXARIALive')", "true");
27           shouldBe("divElement.childAtIndex(0).isAttributeSupported('AXARIARelevant')", "true");
28     }
29
30 </script>
31
32 <script src="../../../fast/js/resources/js-test-post.js"></script>
33 </body>
34 </html>