blob: 81d138a7c04301c7a34d2a4f8a949e2405245e8c [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../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="../../../resources/js-test-post.js"></script>
</body>
</html>