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

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

Issue 69813008: Web Animations CSS: Renamed tests to be less confusing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 | « Source/core/animation/AnimatableLength.h ('k') | Source/core/animation/AnimatableNeutralTest.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 c1382e998bf162ed35e836e17aaec70a652b64d5..b8772ab80559a68b3ba650c54b45ed02619477d6 100644
--- a/Source/core/animation/AnimatableLengthTest.cpp
+++ b/Source/core/animation/AnimatableLengthTest.cpp
@@ -46,7 +46,7 @@
namespace WebCore {
-class CoreAnimationAnimatableLengthTest : public ::testing::Test {
+class AnimationAnimatableLengthTest : public ::testing::Test {
protected:
virtual void SetUp()
{
@@ -90,7 +90,7 @@ protected:
RefPtr<RenderStyle> style;
};
-TEST_F(CoreAnimationAnimatableLengthTest, CanCreateFrom)
+TEST_F(AnimationAnimatableLengthTest, CanCreateFrom)
{
EXPECT_TRUE(AnimatableLength::canCreateFrom(CSSPrimitiveValue::create(5, CSSPrimitiveValue::CSS_PX).get()));
EXPECT_TRUE(AnimatableLength::canCreateFrom(CSSPrimitiveValue::create(5, CSSPrimitiveValue::CSS_CM).get()));
@@ -113,7 +113,7 @@ TEST_F(CoreAnimationAnimatableLengthTest, CanCreateFrom)
EXPECT_FALSE(AnimatableLength::canCreateFrom(CSSPrimitiveValue::create("NaN", CSSPrimitiveValue::CSS_STRING).get()));
}
-TEST_F(CoreAnimationAnimatableLengthTest, Create)
+TEST_F(AnimationAnimatableLengthTest, Create)
{
EXPECT_TRUE(static_cast<bool>(create(5, CSSPrimitiveValue::CSS_PX).get()));
EXPECT_TRUE(static_cast<bool>(create(5, CSSPrimitiveValue::CSS_CM).get()));
@@ -139,7 +139,7 @@ TEST_F(CoreAnimationAnimatableLengthTest, Create)
}
-TEST_F(CoreAnimationAnimatableLengthTest, ToCSSValue)
+TEST_F(AnimationAnimatableLengthTest, ToCSSValue)
{
EXPECT_ROUNDTRIP(CSSPrimitiveValue::create(-5, CSSPrimitiveValue::CSS_PX), toCSSValue);
@@ -162,7 +162,7 @@ TEST_F(CoreAnimationAnimatableLengthTest, ToCSSValue)
}
-TEST_F(CoreAnimationAnimatableLengthTest, ToLength)
+TEST_F(AnimationAnimatableLengthTest, ToLength)
{
EXPECT_EQ(Length(-5, WebCore::Fixed), create(-5, CSSPrimitiveValue::CSS_PX)->toLength(style.get(), style.get(), 1));
EXPECT_EQ(Length(-15, WebCore::Fixed), create(-5, CSSPrimitiveValue::CSS_PX)->toLength(style.get(), style.get(), 3));
@@ -208,7 +208,7 @@ TEST_F(CoreAnimationAnimatableLengthTest, ToLength)
create(-5, CSSPrimitiveValue::CSS_PX, -5, CSSPrimitiveValue::CSS_PERCENTAGE)->toLength(style.get(), style.get(), 3, NonNegativeValues));
}
-TEST_F(CoreAnimationAnimatableLengthTest, Interpolate)
+TEST_F(AnimationAnimatableLengthTest, Interpolate)
{
RefPtr<AnimatableLength> from10px = create(10, CSSPrimitiveValue::CSS_PX);
RefPtr<AnimatableLength> to20pxAsInches = create(20.0 / 96, CSSPrimitiveValue::CSS_IN);
@@ -276,7 +276,7 @@ TEST_F(CoreAnimationAnimatableLengthTest, Interpolate)
AnimatableValue::interpolate(from0percent.get(), to20rem.get(), 1.5));
}
-TEST_F(CoreAnimationAnimatableLengthTest, Add)
+TEST_F(AnimationAnimatableLengthTest, Add)
{
EXPECT_REFV_EQ(create(10, CSSPrimitiveValue::CSS_PX),
AnimatableValue::add(create(10, CSSPrimitiveValue::CSS_PX).get(), create(0, CSSPrimitiveValue::CSS_MM).get()));
@@ -305,7 +305,7 @@ TEST_F(CoreAnimationAnimatableLengthTest, Add)
AnimatableValue::add(create(-10, CSSPrimitiveValue::CSS_REMS).get(), zeropercent.get()));
}
-TEST_F(CoreAnimationAnimatableLengthTest, IsUnitless)
+TEST_F(AnimationAnimatableLengthTest, IsUnitless)
{
EXPECT_TRUE(isUnitlessZero(create(0, CSSPrimitiveValue::CSS_PX)));
EXPECT_FALSE(isUnitlessZero(create(0, CSSPrimitiveValue::CSS_PERCENTAGE)));
@@ -328,7 +328,7 @@ TEST_F(CoreAnimationAnimatableLengthTest, IsUnitless)
EXPECT_FALSE(isUnitlessZero(create(9, CSSPrimitiveValue::CSS_VMAX)));
}
-TEST_F(CoreAnimationAnimatableLengthTest, CommonUnitType)
+TEST_F(AnimationAnimatableLengthTest, CommonUnitType)
{
RefPtr<AnimatableLength> length10px = create(10, CSSPrimitiveValue::CSS_PX);
EXPECT_EQ(AnimatableLength::UnitTypePixels, commonUnitType(length10px, create(1, CSSPrimitiveValue::CSS_PX).get()));
« no previous file with comments | « Source/core/animation/AnimatableLength.h ('k') | Source/core/animation/AnimatableNeutralTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698