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

Unified Diff: sky/engine/core/animation/AnimationTimelineTest.cpp

Issue 1020053002: Remove pauseAnimationsForTesting (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « sky/engine/core/animation/AnimationTimeline.cpp ('k') | sky/engine/core/page/PageAnimator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/animation/AnimationTimelineTest.cpp
diff --git a/sky/engine/core/animation/AnimationTimelineTest.cpp b/sky/engine/core/animation/AnimationTimelineTest.cpp
index 349dda53fd6ea0264a8e77f261c4ca5f760f309a..7fbe1d537281ed44ea8a9043f78dadb45ac00532 100644
--- a/sky/engine/core/animation/AnimationTimelineTest.cpp
+++ b/sky/engine/core/animation/AnimationTimelineTest.cpp
@@ -178,20 +178,6 @@ TEST_F(AnimationAnimationTimelineTest, ZeroTime)
EXPECT_FALSE(isNull);
}
-TEST_F(AnimationAnimationTimelineTest, PauseForTesting)
-{
- float seekTime = 1;
- timing.fillMode = Timing::FillModeForwards;
- RefPtr<Animation> anim1 = Animation::create(element.get(), AnimatableValueKeyframeEffectModel::create(AnimatableValueKeyframeVector()), timing);
- RefPtr<Animation> anim2 = Animation::create(element.get(), AnimatableValueKeyframeEffectModel::create(AnimatableValueKeyframeVector()), timing);
- AnimationPlayer* player1 = timeline->play(anim1.get());
- AnimationPlayer* player2 = timeline->play(anim2.get());
- timeline->pauseAnimationsForTesting(seekTime);
-
- EXPECT_FLOAT_EQ(seekTime, player1->currentTimeInternal());
- EXPECT_FLOAT_EQ(seekTime, player2->currentTimeInternal());
-}
-
TEST_F(AnimationAnimationTimelineTest, DelayBeforeAnimationStart)
{
timing.iterationDuration = 2;
« no previous file with comments | « sky/engine/core/animation/AnimationTimeline.cpp ('k') | sky/engine/core/page/PageAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698