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

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

Issue 27664002: Web Animations: Regularise unit test names (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to head 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 | « Source/core/animation/AnimatableColorTest.cpp ('k') | Source/core/animation/AnimatableLength.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableDoubleTest.cpp
diff --git a/Source/core/animation/AnimatableDoubleTest.cpp b/Source/core/animation/AnimatableDoubleTest.cpp
index 8da8c7f14a109d3cbd7298fd5a2f5c1499a49fda..ea1ab5df4ea43632a400c55f4930a1cc59162eae 100644
--- a/Source/core/animation/AnimatableDoubleTest.cpp
+++ b/Source/core/animation/AnimatableDoubleTest.cpp
@@ -39,19 +39,19 @@ using namespace WebCore;
namespace {
-TEST(AnimatableDoubleTest, Create)
+TEST(CoreAnimationAnimatableDoubleTest, Create)
{
EXPECT_TRUE(static_cast<bool>(AnimatableDouble::create(5).get()));
EXPECT_TRUE(static_cast<bool>(AnimatableDouble::create(10).get()));
}
-TEST(AnimatableDoubleTest, Equal)
+TEST(CoreAnimationAnimatableDoubleTest, Equal)
{
EXPECT_TRUE(AnimatableDouble::create(10)->equals(AnimatableDouble::create(10).get()));
EXPECT_FALSE(AnimatableDouble::create(5)->equals(AnimatableDouble::create(10).get()));
}
-TEST(AnimatableDoubleTest, ToCSSValue)
+TEST(CoreAnimationAnimatableDoubleTest, ToCSSValue)
{
RefPtr<CSSValue> cssValue5 = CSSPrimitiveValue::create(5, CSSPrimitiveValue::CSS_NUMBER);
RefPtr<CSSValue> cssValue10 = CSSPrimitiveValue::create(10, CSSPrimitiveValue::CSS_NUMBER);
@@ -59,14 +59,14 @@ TEST(AnimatableDoubleTest, ToCSSValue)
EXPECT_FALSE(AnimatableDouble::create(5)->toCSSValue()->equals(*cssValue10.get()));
}
-TEST(AnimatableDoubleTest, ToDouble)
+TEST(CoreAnimationAnimatableDoubleTest, ToDouble)
{
EXPECT_EQ(5.9, AnimatableDouble::create(5.9)->toDouble());
EXPECT_EQ(-10, AnimatableDouble::create(-10)->toDouble());
}
-TEST(AnimatableDoubleTest, Interpolate)
+TEST(CoreAnimationAnimatableDoubleTest, Interpolate)
{
RefPtr<AnimatableDouble> from10 = AnimatableDouble::create(10);
RefPtr<AnimatableDouble> to20 = AnimatableDouble::create(20);
@@ -79,7 +79,7 @@ TEST(AnimatableDoubleTest, Interpolate)
EXPECT_EQ(25, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), 1.5).get())->toDouble());
}
-TEST(AnimatableDoubleTest, Add)
+TEST(CoreAnimationAnimatableDoubleTest, Add)
{
EXPECT_EQ(-10, toAnimatableDouble(AnimatableValue::add(AnimatableDouble::create(-2).get(), AnimatableDouble::create(-8).get()).get())->toDouble());
EXPECT_EQ(0, toAnimatableDouble(AnimatableValue::add(AnimatableDouble::create(50).get(), AnimatableDouble::create(-50).get()).get())->toDouble());
« no previous file with comments | « Source/core/animation/AnimatableColorTest.cpp ('k') | Source/core/animation/AnimatableLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698