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

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

Issue 210703002: Web Animations: Sort Animations in the AnimationStack (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix compile? :| Created 6 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 | « Source/core/animation/AnimationPlayer.cpp ('k') | Source/core/animation/AnimationStack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationPlayerTest.cpp
diff --git a/Source/core/animation/AnimationPlayerTest.cpp b/Source/core/animation/AnimationPlayerTest.cpp
index 412f5ee4cfeab93ddde6d3c844209056e65b4ce8..89d056c5a3053faee090e5e4747cc910f485bd13 100644
--- a/Source/core/animation/AnimationPlayerTest.cpp
+++ b/Source/core/animation/AnimationPlayerTest.cpp
@@ -694,7 +694,8 @@ TEST_F(AnimationAnimationPlayerTest, AttachedAnimationPlayers)
TEST_F(AnimationAnimationPlayerTest, HasLowerPriority)
{
- // Note that start time defaults to null
+ // Sort time defaults to timeline current time
+ updateTimeline(15);
RefPtr<AnimationPlayer> player1 = timeline->createAnimationPlayer(0);
RefPtr<AnimationPlayer> player2 = timeline->createAnimationPlayer(0);
player2->setStartTime(10);
@@ -706,11 +707,11 @@ TEST_F(AnimationAnimationPlayerTest, HasLowerPriority)
RefPtr<AnimationPlayer> player6 = timeline->createAnimationPlayer(0);
player6->setStartTime(-10);
Vector<RefPtr<AnimationPlayer> > players;
- players.append(player1);
- players.append(player3);
players.append(player6);
players.append(player2);
players.append(player5);
+ players.append(player1);
+ players.append(player3);
players.append(player4);
for (size_t i = 0; i < players.size(); i++) {
for (size_t j = 0; j < players.size(); j++)
« no previous file with comments | « Source/core/animation/AnimationPlayer.cpp ('k') | Source/core/animation/AnimationStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698