blob: a729a6c9fb1f1d84340cf04e6f36f51f7609e3e1 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../fast/js/resources/js-test-pre.js"></script>
</head>
<body id="body">
<div tabindex="0" id="marquee1" role="marquee">marquee1</div>
<div tabindex="0" id="marquee2" role="marquee" aria-live="assertive">marquee2</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that the marquee role has the correct default aria-live status (off).");
if (window.accessibilityController) {
// Make sure that regular elements are not exposing ARIA live attributes.
document.getElementById("marquee1").focus();
shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXARIALive')", "'off'");
document.getElementById("marquee2").focus();
shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXARIALive')", "'assertive'");
}
</script>
<script src="../../../fast/js/resources/js-test-post.js"></script>
</body>
</html>