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

Unified Diff: Source/core/animation/AnimatableLengthTest.cpp

Issue 23439004: CSS Calc: Use Lengths instead of numbers to represent pixels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to ToT again Created 7 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 | Source/core/css/CSSCalculationValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableLengthTest.cpp
diff --git a/Source/core/animation/AnimatableLengthTest.cpp b/Source/core/animation/AnimatableLengthTest.cpp
index c2d49a2685d5b1ab53e02e38dcd50bdf84c2df53..d10615a729f1a0b51af09cb6f31456c982fe8537 100644
--- a/Source/core/animation/AnimatableLengthTest.cpp
+++ b/Source/core/animation/AnimatableLengthTest.cpp
@@ -175,7 +175,7 @@ TEST_F(AnimatableLengthTest, ToLength)
EXPECT_EQ(
Length(CalculationValue::create(
adoptPtr(new CalcExpressionBinaryOperation(
- adoptPtr(new CalcExpressionNumber(-5)),
+ adoptPtr(new CalcExpressionLength(Length(-5, WebCore::Fixed))),
adoptPtr(new CalcExpressionLength(Length(-5, Percent))),
CalcAdd)),
CalculationRangeAll)),
@@ -183,7 +183,7 @@ TEST_F(AnimatableLengthTest, ToLength)
EXPECT_EQ(
Length(CalculationValue::create(
adoptPtr(new CalcExpressionBinaryOperation(
- adoptPtr(new CalcExpressionNumber(-15)),
+ adoptPtr(new CalcExpressionLength(Length(-15, WebCore::Fixed))),
adoptPtr(new CalcExpressionLength(Length(-5, Percent))),
CalcAdd)),
CalculationRangeAll)),
@@ -191,7 +191,7 @@ TEST_F(AnimatableLengthTest, ToLength)
EXPECT_EQ(
Length(CalculationValue::create(
adoptPtr(new CalcExpressionBinaryOperation(
- adoptPtr(new CalcExpressionNumber(-5)),
+ adoptPtr(new CalcExpressionLength(Length(-5, WebCore::Fixed))),
adoptPtr(new CalcExpressionLength(Length(-5, Percent))),
CalcAdd)),
CalculationRangeNonNegative)),
@@ -199,7 +199,7 @@ TEST_F(AnimatableLengthTest, ToLength)
EXPECT_EQ(
Length(CalculationValue::create(
adoptPtr(new CalcExpressionBinaryOperation(
- adoptPtr(new CalcExpressionNumber(-15)),
+ adoptPtr(new CalcExpressionLength(Length(-15, WebCore::Fixed))),
adoptPtr(new CalcExpressionLength(Length(-5, Percent))),
CalcAdd)),
CalculationRangeNonNegative)),
« no previous file with comments | « no previous file | Source/core/css/CSSCalculationValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698