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

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

Issue 369793003: Make the web-animations engine use the passed in blink::WebFrameTime values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing remaining usages of -1 in the code. Created 6 years, 5 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/AnimationPlayerTest.cpp ('k') | Source/core/animation/AnimationTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationStackTest.cpp
diff --git a/Source/core/animation/AnimationStackTest.cpp b/Source/core/animation/AnimationStackTest.cpp
index 9f62e7354de3ef381f993a74dd7f6ce8fb20e25d..06338d9907dff12cea143ff6e46da4449c4251c2 100644
--- a/Source/core/animation/AnimationStackTest.cpp
+++ b/Source/core/animation/AnimationStackTest.cpp
@@ -20,7 +20,8 @@ protected:
virtual void SetUp()
{
document = Document::create();
- document->animationClock().resetTimeForTesting();
+ document->animationClock().clearTimeForTesting();
+ document->animationClock().updateTime(AnimationClock::createTimeForTesting(0, 0));
timeline = AnimationTimeline::create(document.get());
element = document->createElement("foo", ASSERT_NO_EXCEPTION);
}
@@ -35,7 +36,7 @@ protected:
void updateTimeline(double time)
{
- document->animationClock().updateTime(time);
+ document->animationClock().updateTime(AnimationClock::createTimeForTesting(time, time + 1));
timeline->serviceAnimations(TimingUpdateForAnimationFrame);
}
« no previous file with comments | « Source/core/animation/AnimationPlayerTest.cpp ('k') | Source/core/animation/AnimationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698