| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| <div id="div" tabindex="0"> |
| <span aria-live="polite" aria-relevant="all">text</span> |
| 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."); |
| if (window.accessibilityController) { |
| document.getElementById("div").focus(); |
| var divElement = accessibilityController.focusedElement; |
| shouldBe("divElement.childAtIndex(0).role", "'AXRole: AXGroup'"); |
| shouldBe("divElement.childAtIndex(0).childAtIndex(0).role", "'AXRole: AXStaticText'"); |
| shouldBe("divElement.childAtIndex(0).isAttributeSupported('AXARIALive')", "true"); |
| shouldBe("divElement.childAtIndex(0).isAttributeSupported('AXARIARelevant')", "true"); |
| <script src="../../resources/js-test-post.js"></script> |