Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / aria-slider-value.html
blob7023da6a0aa45e748d9c19d7f521bd48418881cf
1 <html>
2 <body>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 function checkValue() {
8 if (!window.accessibilityController)
9 return;
11 var aria = document.getElementById("slider");
12 aria.focus();
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 + ".";
22 else
23 result.innerText = "This test FAILS in DumpRenderTree. The value, minValue, and/or maxValue of the range must be incorrect.";
25 </script>
27 <div>
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>
31 <script>
32 checkValue();
33 </script>
34 </div>
36 </body>
37 </html>