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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/range/ValidityState-stepMismatch-range-expected.txt

Issue 2366753004: input[type=range]: Updating step attribute should align the value to steps. (Closed)
Patch Set: Created 4 years, 3 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
Index: third_party/WebKit/LayoutTests/fast/forms/range/ValidityState-stepMismatch-range-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/forms/range/ValidityState-stepMismatch-range-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/range/ValidityState-stepMismatch-range-expected.txt
index bb6743599c9cce56d9da0652d2f6c3d2db701544..381ad4b1443fed84ace600a84bf54b753b6d2109 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/range/ValidityState-stepMismatch-range-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/forms/range/ValidityState-stepMismatch-range-expected.txt
@@ -15,6 +15,12 @@ Invalid step values
PASS stepMismatchFor("-3", "-2", "-4") is false
PASS stepMismatchFor("-3", null, "-4") is false
PASS stepMismatchFor("-3", undefined, "-4") is false
+Updating step attribute
+PASS input.value is "50"
+PASS input.step = "15"; input.value is "45"
+PASS input.step = "20"; input.value is "40"
+PASS input.value = "5", input.value is "10"
+PASS input.step = "6"; input.value is "12"
Huge numbers and small step; uncomparable
PASS stepMismatchFor("3.40282347e+38", "3", "") is false
PASS stepMismatchFor("3.40282346e+38", "3", "") is false

Powered by Google App Engine
This is Rietveld 408576698