blob: aa3e58d12b338c4e4074797f6d9f5d5c95e2c704 [file] [log] [blame]
<!DOCTYPE HTML>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<input id="range" type="range" min=0 max=10 value=5>
<script>
async_test(function(t)
{
var target = document.getElementById("range");
target.addEventListener("change", function() {
assert_equals(target.value, "6");
target.style.display = "none";
t.done();
}, false);
var axTarget = accessibilityController.accessibleElementById("range");
axTarget.setValue("6");
}, "changing the value of a range control fires a change event on it.");
</script>