1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
content / test / data / accessibility / event / range-value-step-changed.html [blame]
<!--
@WIN-DENY:EVENT_OBJECT_FOCUS*
@UIA-WIN-DENY:AutomationFocusChanged*
-->
<!DOCTYPE html>
<input id="step" type="range" min="0" max="10" value="4" step="4">
<script>
var go_passes = [
() => document.querySelector('#step').setAttribute('step', 2),
() => document.querySelector('#step').removeAttribute('step'),
// This |step| value should also trigger a property changed event
// for UIA_RangeValueValuePropertyId
() => document.querySelector('#step').setAttribute('step', 3),
];
var current_pass = 0;
function go() {
go_passes[current_pass++].call();
return current_pass < go_passes.length;
}
</script>