Index: LayoutTests/accessibility/meter-value.html |
diff --git a/LayoutTests/accessibility/meter-value.html b/LayoutTests/accessibility/meter-value.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..91be520339bc8be85a62dcf1e921bc05a0e46ee6 |
--- /dev/null |
+++ b/LayoutTests/accessibility/meter-value.html |
@@ -0,0 +1,24 @@ |
+<!DOCTYPE HTML> |
+<head> |
+<title>Test meter min max value attributes</title> |
+<script src="../resources/js-test.js"></script> |
+</head> |
+<body> |
+ |
+<meter id="meter1" value="5" min="0" max="10">5 out of 10</meter> |
+ |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+description("This tests that meter element attributes min, max, value are exposed to accessibility module"); |
+ |
+if (window.accessibilityController) { |
+ window.axMeter1 = window.accessibilityController.accessibleElementById("meter1"); |
+ |
+ shouldBe("axMeter1.minValue", "0"); |
+ shouldBe("axMeter1.maxValue", "10"); |
+ shouldBe("axMeter1.intValue", "5"); |
+} |
+</script> |
+</body> |