blob: c5657c0c5bfcd387cf11040114844d6ed82c8c6a [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>