| Index: Source/core/animation/animatable/AnimatableDoubleTest.cpp
|
| diff --git a/Source/core/animation/animatable/AnimatableDoubleTest.cpp b/Source/core/animation/animatable/AnimatableDoubleTest.cpp
|
| index 3435536d9d072e9e9990283c04f2845e3a3797d1..829fc60642c0580dc2ec7b3e120c3c7b0e377d46 100644
|
| --- a/Source/core/animation/animatable/AnimatableDoubleTest.cpp
|
| +++ b/Source/core/animation/animatable/AnimatableDoubleTest.cpp
|
| @@ -37,14 +37,14 @@ namespace blink {
|
|
|
| TEST(AnimationAnimatableDoubleTest, Create)
|
| {
|
| - EXPECT_TRUE(static_cast<bool>(AnimatableDouble::create(5).get()));
|
| - EXPECT_TRUE(static_cast<bool>(AnimatableDouble::create(10).get()));
|
| + EXPECT_TRUE(static_cast<bool>(AnimatableDouble::create(5)));
|
| + EXPECT_TRUE(static_cast<bool>(AnimatableDouble::create(10)));
|
| }
|
|
|
| TEST(AnimationAnimatableDoubleTest, Equal)
|
| {
|
| - EXPECT_TRUE(AnimatableDouble::create(10)->equals(AnimatableDouble::create(10).get()));
|
| - EXPECT_FALSE(AnimatableDouble::create(5)->equals(AnimatableDouble::create(10).get()));
|
| + EXPECT_TRUE(AnimatableDouble::create(10)->equals(AnimatableDouble::create(10)));
|
| + EXPECT_FALSE(AnimatableDouble::create(5)->equals(AnimatableDouble::create(10)));
|
| }
|
|
|
| TEST(AnimationAnimatableDoubleTest, ToDouble)
|
| @@ -56,15 +56,15 @@ TEST(AnimationAnimatableDoubleTest, ToDouble)
|
|
|
| TEST(AnimationAnimatableDoubleTest, Interpolate)
|
| {
|
| - RefPtrWillBeRawPtr<AnimatableDouble> from10 = AnimatableDouble::create(10);
|
| - RefPtrWillBeRawPtr<AnimatableDouble> to20 = AnimatableDouble::create(20);
|
| - EXPECT_EQ(5, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), -0.5).get())->toDouble());
|
| - EXPECT_EQ(10, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), 0).get())->toDouble());
|
| - EXPECT_EQ(14, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), 0.4).get())->toDouble());
|
| - EXPECT_EQ(15, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), 0.5).get())->toDouble());
|
| - EXPECT_EQ(16, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), 0.6).get())->toDouble());
|
| - EXPECT_EQ(20, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), 1).get())->toDouble());
|
| - EXPECT_EQ(25, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), 1.5).get())->toDouble());
|
| + AnimatableDouble* from10 = AnimatableDouble::create(10);
|
| + AnimatableDouble* to20 = AnimatableDouble::create(20);
|
| + EXPECT_EQ(5, toAnimatableDouble(AnimatableValue::interpolate(from10, to20, -0.5))->toDouble());
|
| + EXPECT_EQ(10, toAnimatableDouble(AnimatableValue::interpolate(from10, to20, 0))->toDouble());
|
| + EXPECT_EQ(14, toAnimatableDouble(AnimatableValue::interpolate(from10, to20, 0.4))->toDouble());
|
| + EXPECT_EQ(15, toAnimatableDouble(AnimatableValue::interpolate(from10, to20, 0.5))->toDouble());
|
| + EXPECT_EQ(16, toAnimatableDouble(AnimatableValue::interpolate(from10, to20, 0.6))->toDouble());
|
| + EXPECT_EQ(20, toAnimatableDouble(AnimatableValue::interpolate(from10, to20, 1))->toDouble());
|
| + EXPECT_EQ(25, toAnimatableDouble(AnimatableValue::interpolate(from10, to20, 1.5))->toDouble());
|
| }
|
|
|
| } // namespace blink
|
|
|