| Index: Source/core/animation/AnimationPlayerTest.cpp
|
| diff --git a/Source/core/animation/AnimationPlayerTest.cpp b/Source/core/animation/AnimationPlayerTest.cpp
|
| index d3480835b4c28dea087425e48cd76203337c6095..d334474fbb1a950fae23c3c2b7bcddcf9e761e4b 100644
|
| --- a/Source/core/animation/AnimationPlayerTest.cpp
|
| +++ b/Source/core/animation/AnimationPlayerTest.cpp
|
| @@ -686,6 +686,26 @@ TEST_F(AnimationAnimationPlayerTest, TimeToNextEffectWhenPaused)
|
| EXPECT_EQ(std::numeric_limits<double>::infinity(), player->timeToEffectChange());
|
| }
|
|
|
| +TEST_F(AnimationAnimationPlayerTest, TimeToNextEffectWhenCancelledBeforeStart)
|
| +{
|
| + EXPECT_EQ(0, player->timeToEffectChange());
|
| + player->setCurrentTime(-8);
|
| + player->setPlaybackRate(2);
|
| + player->cancel();
|
| + player->update(AnimationPlayer::UpdateOnDemand);
|
| + EXPECT_EQ(4, player->timeToEffectChange());
|
| +}
|
| +
|
| +TEST_F(AnimationAnimationPlayerTest, TimeToNextEffectWhenCancelledBeforeStartReverse)
|
| +{
|
| + EXPECT_EQ(0, player->timeToEffectChange());
|
| + player->setCurrentTime(9);
|
| + player->setPlaybackRate(-3);
|
| + player->cancel();
|
| + player->update(AnimationPlayer::UpdateOnDemand);
|
| + EXPECT_EQ(3, player->timeToEffectChange());
|
| +}
|
| +
|
| TEST_F(AnimationAnimationPlayerTest, AttachedAnimationPlayers)
|
| {
|
| RefPtr<Element> element = document->createElement("foo", ASSERT_NO_EXCEPTION);
|
|
|