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

Unified Diff: LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt

Issue 152753002: Update input[type=range]'s step base handling to match spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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: LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt
diff --git a/LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt b/LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt
index 2d36fea220881e16d1f551a2e9dad166efe7ae3e..4bcbac4fe30a41b7e9f67d9ea2f87762f4f53f88 100644
--- a/LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt
+++ b/LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt
@@ -31,6 +31,13 @@ PASS stepUpExplicitBounds(null, null, "-1", "2") is "3"
PASS stepDownExplicitBounds(null, null, "foo", "1") is "0"
PASS stepDownExplicitBounds(null, null, "0", "2") is "1"
PASS stepDownExplicitBounds(null, null, "-1", "3") is "2"
+Step bases
+PASS createInputWithContentAttributes(0, 100, "20", "50"); input.value is "60"
+PASS createInputWithContentAttributes(null, null, "50", "25"); input.value is "25"
+PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(1); input.value is "75"
+PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(1); input.stepDown(1); input.value is "25"
+PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(2); input.stepDown(2); threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (125) would be higher than the maximum (100), and snapping to the maximum would exceed the amount of acceptible error..
+PASS createInputWithContentAttributes(null, null, "7", "22"); input.stepUp(40); threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (302) would be higher than the maximum (100), and snapping to the maximum would exceed the amount of acceptible error..
Step=any
PASS stepUpExplicitBounds(null, null, "any", "1") threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an allowed value step..
PASS stepDownExplicitBounds(null, null, "any", "1") threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step..

Powered by Google App Engine
This is Rietveld 408576698