| Index: Source/core/animation/AnimationPlayerTest.cpp
|
| diff --git a/Source/core/animation/AnimationPlayerTest.cpp b/Source/core/animation/AnimationPlayerTest.cpp
|
| index 37660e69b825abd5b90229633d49dce2fa0d0acd..9e20bf58cb7a329ab5945a1c8b6b24b543feea0b 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(blink::WebFrameTime(-1, -1, 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(blink::WebFrameTime(-1, -1, 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(blink::WebFrameTime(-1, -1, 10, 11));
|
| EXPECT_EQ(10, player->currentTimeInternal());
|
| EXPECT_FALSE(player->outdated());
|
| }
|
|
|