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

Unified Diff: third_party/WebKit/Source/core/html/forms/StepRangeTest.cpp

Issue 2033323002: :in-range and :out-of-range CSS selectors should check 'have range limitations.' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « third_party/WebKit/Source/core/html/forms/StepRange.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/forms/StepRangeTest.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/StepRangeTest.cpp b/third_party/WebKit/Source/core/html/forms/StepRangeTest.cpp
index ea7509b4c779435196d7a873a0522476d25c64c1..cca25cf831039054eca40b9946b8f21499e98e04 100644
--- a/third_party/WebKit/Source/core/html/forms/StepRangeTest.cpp
+++ b/third_party/WebKit/Source/core/html/forms/StepRangeTest.cpp
@@ -11,7 +11,7 @@ namespace blink {
TEST(StepRangeTest, ClampValueWithOutStepMatchedValue)
{
// <input type=range value=200 min=0 max=100 step=1000>
- StepRange stepRange(Decimal(200), Decimal(0), Decimal(100), Decimal(1000), StepRange::StepDescription());
+ StepRange stepRange(Decimal(200), Decimal(0), Decimal(100), true, Decimal(1000), StepRange::StepDescription());
EXPECT_EQ(Decimal(100), stepRange.clampValue(Decimal(200)));
EXPECT_EQ(Decimal(0), stepRange.clampValue(Decimal(-100)));
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/StepRange.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698