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

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

Issue 638313002: Web Animations: Overhaul and trace play state in AnimationPlayer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't set compositor pending when paused for testing Created 6 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/AnimationStackTest.cpp ('k') | Source/core/animation/CompositorPendingAnimations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationTimelineTest.cpp
diff --git a/Source/core/animation/AnimationTimelineTest.cpp b/Source/core/animation/AnimationTimelineTest.cpp
index 889e29c920843cc9699e074b6efdeee386eccebb..276c43a1831dc0c3ddfd718f2763bf718a6cf615 100644
--- a/Source/core/animation/AnimationTimelineTest.cpp
+++ b/Source/core/animation/AnimationTimelineTest.cpp
@@ -196,8 +196,8 @@ TEST_F(AnimationAnimationTimelineTest, PauseForTesting)
AnimationPlayer* player2 = timeline->play(anim2.get());
timeline->pauseAnimationsForTesting(seekTime);
- EXPECT_FLOAT_EQ(seekTime, player1->currentTimeInternal());
- EXPECT_FLOAT_EQ(seekTime, player2->currentTimeInternal());
+ EXPECT_FLOAT_EQ(seekTime, player1->currentTime() / 1000.0);
+ EXPECT_FLOAT_EQ(seekTime, player2->currentTime() / 1000.0);
}
TEST_F(AnimationAnimationTimelineTest, DelayBeforeAnimationStart)
« no previous file with comments | « Source/core/animation/AnimationStackTest.cpp ('k') | Source/core/animation/CompositorPendingAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698