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

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

Issue 279493003: Web Animations: Fix error in clock update logic and re-enable timeline-time test (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/AnimationClock.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationClockTest.cpp
diff --git a/Source/core/animation/AnimationClockTest.cpp b/Source/core/animation/AnimationClockTest.cpp
index 3ef0b58b4258519928c4abebda65b18b63e36d6d..83392ddd0d22203562208c0d9d21e539605484db 100644
--- a/Source/core/animation/AnimationClockTest.cpp
+++ b/Source/core/animation/AnimationClockTest.cpp
@@ -119,4 +119,17 @@ TEST_F(AnimationAnimationClockTest, UpdateTimeIsMonotonic)
EXPECT_GE(150, animationClock.currentTime());
}
+TEST_F(AnimationAnimationClockTest, CurrentTimeUpdatesTask)
+{
+ animationClock.updateTime(100);
+ EXPECT_EQ(100, animationClock.currentTime());
+
+ mockTime = 100;
+ AnimationClock::notifyTaskStart();
+ EXPECT_EQ(100, animationClock.currentTime());
+
+ mockTime = 150;
+ EXPECT_EQ(100, animationClock.currentTime());
+}
+
}
« no previous file with comments | « Source/core/animation/AnimationClock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698