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

Unified Diff: LayoutTests/accessibility/input-type-range-value-change.html

Issue 1071873004: Changing slider values do not work properly when percent change of a step is less than one. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Just did some cleanup Created 5 years, 8 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/input-type-range-value-change-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/input-type-range-value-change.html
diff --git a/LayoutTests/accessibility/input-type-range-value-change.html b/LayoutTests/accessibility/input-type-range-value-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..54d6fc6877ec422056246ba4a38c087dd2d9b4be
--- /dev/null
+++ b/LayoutTests/accessibility/input-type-range-value-change.html
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body>
+
+<input id="range1" type="range" min="0" max="100" value="50">
+<input id="range2" type="range" min="0" max="10" value="5">
+<input id="range3" type="range" min="0" max="50" value="10" step="5">
+
+<script>
+
+description("Check whether changing slider's value without step attribute works properly");
+
+if (window.accessibilityController) {
+ // Checking whether step is greater than one
+ var range1 = accessibilityController.accessibleElementById("range1");
+ shouldBe("range1.intValue", "50");
+ range1.increment();
+ shouldBe("range1.intValue", "51");
+ range1.increment();
+ shouldBe("range1.intValue", "52");
+ range1.decrement();
+ shouldBe("range1.intValue", "51");
+ range1.increment();
+ shouldBe("range1.intValue", "52");
+
+ var range2 = accessibilityController.accessibleElementById("range2");
+ shouldBe("range2.intValue", "5");
+ range2.increment();
+ shouldBe("range2.intValue", "6");
+ range2.increment();
+ shouldBe("range2.intValue", "7");
+ range2.decrement();
+ shouldBe("range2.intValue", "6");
+ range2.increment();
+ shouldBe("range2.intValue", "7");
+
+ var range3 = accessibilityController.accessibleElementById("range3");
+ shouldBe("range3.intValue", "10");
+ range3.increment();
+ shouldBe("range3.intValue", "15");
+ range3.increment();
+ shouldBe("range3.intValue", "20");
+ range3.decrement();
+ shouldBe("range3.intValue", "15");
+ range3.increment();
+ shouldBe("range3.intValue", "20");
+}
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/accessibility/input-type-range-value-change-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698