5 testRunner
.dumpAsText();
7 function checkValue() {
8 if (!window
.accessibilityController
)
11 var aria
= document
.getElementById("slider");
13 var focusedElement
= accessibilityController
.focusedElement
;
14 var value
= focusedElement
.intValue
;
15 var minValue
= focusedElement
.minValue
;
16 var maxValue
= focusedElement
.maxValue
;
18 var result
= document
.getElementById("result");
19 if (value
== 5 && minValue
== 0 && maxValue
== 10)
20 result
.innerText
= "This test PASSES in DumpRenderTree. The value is " + value
+ ", the minValue is "
21 + minValue
+ ", and the max value is " + maxValue
+ ".";
23 result
.innerText
= "This test FAILS in DumpRenderTree. The value, minValue, and/or maxValue of the range must be incorrect.";
28 <p>In accessibility, the following should be a progress indicator:
</p>
29 <p><span tabindex=
"0" role=
"slider" id=
"slider" aria-valuenow=
5 aria-valuemin=
0 aria-valuemax=
10>X
</span></p>
30 <span id=
"result"></span>