| Index: Source/core/animation/AnimationPlayerTest.cpp
|
| diff --git a/Source/core/animation/AnimationPlayerTest.cpp b/Source/core/animation/AnimationPlayerTest.cpp
|
| index 37660e69b825abd5b90229633d49dce2fa0d0acd..c2349b8b614d564504a133b0010cb2f2cadf2768 100644
|
| --- a/Source/core/animation/AnimationPlayerTest.cpp
|
| +++ b/Source/core/animation/AnimationPlayerTest.cpp
|
| @@ -55,7 +55,8 @@ protected:
|
| void setUpWithoutStartingTimeline()
|
| {
|
| document = Document::create();
|
| - document->animationClock().resetTimeForTesting();
|
| + document->animationClock().clearTimeForTesting();
|
| + document->animationClock().updateTime(AnimationClock::createTimeForTesting(0, 0));
|
| timeline = AnimationTimeline::create(document.get());
|
| player = timeline->createAnimationPlayer(0);
|
| player->setStartTimeInternal(0);
|
| @@ -77,7 +78,7 @@ protected:
|
|
|
| bool updateTimeline(double time)
|
| {
|
| - document->animationClock().updateTime(time);
|
| + document->animationClock().updateTime(AnimationClock::createTimeForTesting(time, time + 1));
|
| // The timeline does not know about our player, so we have to explicitly call update().
|
| return player->update(TimingUpdateOnDemand);
|
| }
|
| @@ -119,7 +120,7 @@ TEST_F(AnimationAnimationPlayerTest, CurrentTimeDoesNotSetOutdated)
|
| // FIXME: We should split updateTimeline into a version that doesn't update
|
| // the player and one that does, as most of the tests don't require update()
|
| // to be called.
|
| - document->animationClock().updateTime(10);
|
| + document->animationClock().updateTime(AnimationClock::createTimeForTesting(10, 11));
|
| EXPECT_EQ(10, player->currentTimeInternal());
|
| EXPECT_FALSE(player->outdated());
|
| }
|
|
|