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

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

Issue 813233002: Animation: Fix loss of type information when interpolating value of 0 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix second accumulateLength method Created 6 years 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: Source/core/animation/LengthPoint3DStyleInterpolationTest.cpp
diff --git a/Source/core/animation/LengthPoint3DStyleInterpolationTest.cpp b/Source/core/animation/LengthPoint3DStyleInterpolationTest.cpp
index 69920488c60fd5a38cadd8244c4bc9a0dadd4f55..dee0a4283495fc9108bf11c0d5f7ea4547a87643 100644
--- a/Source/core/animation/LengthPoint3DStyleInterpolationTest.cpp
+++ b/Source/core/animation/LengthPoint3DStyleInterpolationTest.cpp
@@ -58,7 +58,7 @@ TEST_F(AnimationLengthPoint3DStyleInterpolationTest, ZeroPoint3D)
lengthPoint3D->append(CSSPrimitiveValue::create(0, CSSPrimitiveValue::CSS_EMS));
lengthPoint3D->append(CSSPrimitiveValue::create(0, CSSPrimitiveValue::CSS_PERCENTAGE));
RefPtrWillBeRawPtr<CSSValue> value = roundTrip(lengthPoint3D.release());
- testPrimitiveValue(value, 0, 0, 0, CSSPrimitiveValue::CSS_PX, CSSPrimitiveValue::CSS_PX, CSSPrimitiveValue::CSS_PX);
+ testPrimitiveValue(value, 0, 0, 0, CSSPrimitiveValue::CSS_PX, CSSPrimitiveValue::CSS_EMS, CSSPrimitiveValue::CSS_PERCENTAGE);
}
TEST_F(AnimationLengthPoint3DStyleInterpolationTest, SingleUnitPoint3D)
« no previous file with comments | « Source/core/animation/LengthPairStyleInterpolationTest.cpp ('k') | Source/core/animation/LengthStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698