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

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

Issue 1164573002: CSSValue Immediates: Change CSSValue to an object instead of a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some small fixes to (hopefully) fix some broken tests Created 5 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
Index: Source/core/animation/KeyframeEffectTest.cpp
diff --git a/Source/core/animation/KeyframeEffectTest.cpp b/Source/core/animation/KeyframeEffectTest.cpp
index 5ee2ff3651e3d5a0bd3d71c9e8c1681d9f4e5c1a..85c3d3c543ff5e7388245414c1b505b80b2b4568 100644
--- a/Source/core/animation/KeyframeEffectTest.cpp
+++ b/Source/core/animation/KeyframeEffectTest.cpp
@@ -98,13 +98,11 @@ TEST_F(AnimationKeyframeEffectV8Test, CanCreateAnAnimation)
EXPECT_EQ(0, keyframes[0]->offset());
EXPECT_EQ(1, keyframes[1]->offset());
- const CSSValue* keyframe1Width = toStringKeyframe(keyframes[0].get())->cssPropertyValue(CSSPropertyWidth);
- const CSSValue* keyframe2Width = toStringKeyframe(keyframes[1].get())->cssPropertyValue(CSSPropertyWidth);
- ASSERT(keyframe1Width);
- ASSERT(keyframe2Width);
+ const CSSValue keyframe1Width = toStringKeyframe(keyframes[0].get())->cssPropertyValue(CSSPropertyWidth);
+ const CSSValue keyframe2Width = toStringKeyframe(keyframes[1].get())->cssPropertyValue(CSSPropertyWidth);
- EXPECT_EQ("100px", keyframe1Width->cssText());
- EXPECT_EQ("0px", keyframe2Width->cssText());
+ EXPECT_EQ("100px", keyframe1Width.cssText());
+ EXPECT_EQ("0px", keyframe2Width.cssText());
EXPECT_EQ(*(CubicBezierTimingFunction::preset(CubicBezierTimingFunction::EaseInOut)), keyframes[0]->easing());
EXPECT_EQ(*(CubicBezierTimingFunction::create(1, 1, 0.3, 0.3).get()), keyframes[1]->easing());

Powered by Google App Engine
This is Rietveld 408576698