blob: 16dea744851811d0b5bef65c3b8bde7e07bedaeb [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 id="content">
<div role="dialog" aria-modal="true" id="test">
<input type="button" value="ok"/>
</div>
</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that a dialog with aria-modal='true' exposes modal state");
if (window.accessibilityController) {
var axElement = accessibilityController.accessibleElementById("test");
shouldBeTrue("axElement.boolAttributeValue('AXModal')");
var element = document.getElementById("test");
element.setAttribute("aria-modal", "false");
shouldBeFalse("axElement.boolAttributeValue('AXModal')");
document.getElementById("content").style.visibility = "hidden";
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>