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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute.html

Issue 2463693002: INPUT element: Updating 'step' attribute should adjust the last value. (Closed)
Patch Set: Created 4 years, 2 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 | third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute.html b/third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute.html
index 6547d5132553974e02620eee4e3be681e55bf5b5..23ccbf0ae0701c94d226e45b35e2b4cb1c9acc63 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute.html
@@ -25,6 +25,14 @@ shouldBe('input.setAttribute("max", "10"); input.value', '"10"');
debug("value attribute should not change the value after you set a value")
shouldBe('input.value = 10; input.setAttribute("value", "5"); input.value', '"10"');
+
+debug('Updating step attribute should adjust the last value.');
+input = document.createElement('input');
+input.type = 'range';
+input.step = '10';
+shouldBeEqualToString('input.value', '50');
+shouldBeEqualToString('input.step = "15"; input.value', '45');
+shouldBeEqualToString('input.step = "20"; input.value', '40');
</script>
</body>
</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698