blob: 324257e2c4051e9e69ee6e0682359366fdea41c6 [file] [edit]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body id="body">
<div tabindex=0 id="slider" role="slider" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">slider</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that its possible to increment and decrement an aria slider and have the value updated correctly.");
if (window.accessibilityController) {
var slider = document.getElementById("slider");
slider.focus();
slider = accessibilityController.focusedElement;
shouldBe("slider.intValue", "50");
slider.increment();
// As of now, there's no specification designed to update the DOM after an AX call.
shouldBe("slider.intValue", "50");
slider.decrement();
slider.decrement();
// As of now, there's no specification designed to update the DOM after an AX call.
shouldBe("slider.intValue", "50");
}
</script>
</body>
</html>