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

Unified Diff: Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp

Issue 983103003: Use Length for the stroke-width property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: lengthSetterForProperty Created 5 years, 9 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/animatable/AnimatableValueTestHelperTest.cpp
diff --git a/Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp b/Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp
index 1c6bdc2341050afea8414ba7c6254b9c73fdb4f8..e9814636235e770c24dde89655b1c4dcb3f66694 100644
--- a/Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp
+++ b/Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp
@@ -32,10 +32,8 @@
#include "core/animation/animatable/AnimatableValueTestHelper.h"
-#include "bindings/core/v8/ExceptionStatePlaceholder.h"
#include "core/layout/ClipPathOperation.h"
#include "core/layout/style/BasicShapes.h"
-#include "core/svg/SVGLengthContext.h"
#include "platform/transforms/ScaleTransformOperation.h"
#include "platform/transforms/TranslateTransformOperation.h"
@@ -72,15 +70,6 @@ TEST_F(AnimationAnimatableValueTestHelperTest, PrintTo)
PrintToString(const_cast<AnimatableValue*>(AnimatableValue::neutralValue())),
testing::StartsWith("AnimatableNeutral@"));
- RefPtrWillBeRawPtr<SVGLength> length1cm = SVGLength::create();
- RefPtrWillBeRawPtr<SVGLength> length2cm = SVGLength::create();
- length1cm->setValueAsString("1cm", ASSERT_NO_EXCEPTION);
- length2cm->setValueAsString("2cm", ASSERT_NO_EXCEPTION);
-
- EXPECT_EQ(
- ::std::string("AnimatableSVGLength(1cm)"),
- PrintToString(AnimatableSVGLength::create(length1cm)));
-
EXPECT_THAT(
PrintToString(AnimatableShapeValue::create(ShapeValue::createShapeValue(BasicShapeCircle::create().get(), ContentBox).get())),
testing::StartsWith("AnimatableShapeValue@"));

Powered by Google App Engine
This is Rietveld 408576698