Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Unified Diff: LayoutTests/accessibility/meter-value.html

Issue 832763002: Expose attributes max, min, value for meter html tag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/meter-value-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/accessibility/meter-value-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698