blob: 40cfe3e8bff81efb84e63bb225b0b8a1a17cead1 [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 role="spinbutton" id="spin" aria-valuetext="Monday" aria-valuemin="1" aria-valuemax="7" aria-valuenow="4">spinbutton</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that aria-value* properties work on spinbutton roles.");
if (window.accessibilityController) {
var spin = accessibilityController.accessibleElementById("spin");
shouldBe("spin.valueDescription", "'AXValueDescription: Monday'");
shouldBe("spin.stringValue", "'AXValue: 4'");
shouldBe("spin.minValue", "1");
shouldBe("spin.maxValue", "7");
shouldBeTrue("spin.isAttributeSupported('AXValueDescription')");
shouldBeTrue("spin.isAttributeSupported('AXMaxValue')");
shouldBeTrue("spin.isAttributeSupported('AXMinValue')");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>