blob: 40e9eb7c3de25cbbe04391e54e7f9dc4b1592b3d [file] [log] [blame]
<html>
<body>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
function validateRole() {
if (!window.accessibilityController)
return;
var aria = document.getElementById("range");
aria.focus();
var ariaRole = accessibilityController.focusedElement.role;
var result = document.getElementById("result");
if (ariaRole == "AXRole: AXSlider")
result.innerText = "This test PASSES in DumpRenderTree. The role is " + ariaRole;
else
result.innerText = "This test FAILS in DumpRenderTree. The ARIA role is " + ariaRole + ", but should be AXSlider";
}
</script>
<div>
<p>In accessibility, the following should be a progress indicator:</p>
<p><span tabindex="0" role="range" id="range" aria-valuenow=5 aria-valuemin=0 aria-valuemax=10>X</span></p>
<span id="result"></span>
<script>
validateRole();
</script>
</div>
</body>
</html>