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

Unified Diff: cc/animation/element_animations_unittest.cc

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « cc/animation/animation_player_unittest.cc ('k') | cc/animation/element_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/element_animations_unittest.cc
diff --git a/cc/animation/element_animations_unittest.cc b/cc/animation/element_animations_unittest.cc
index 679426642b1edca42467602c49274cde8f67684f..014d158d4f07c71ce8cc86bebd1437b6ba2136ca 100644
--- a/cc/animation/element_animations_unittest.cc
+++ b/cc/animation/element_animations_unittest.cc
@@ -1196,9 +1196,9 @@ TEST_F(ElementAnimationsTest,
EXPECT_EQ(0.f, client_.GetOpacity(element_id_, ElementListType::ACTIVE));
// Send the synchronized start time.
- animations->NotifyAnimationStarted(
- AnimationEvent(AnimationEvent::STARTED, 0, 1, TargetProperty::OPACITY,
- kInitialTickTime + TimeDelta::FromMilliseconds(2000)));
+ animations->NotifyAnimationStarted(AnimationEvent(
+ AnimationEvent::STARTED, ElementId(), 1, TargetProperty::OPACITY,
+ kInitialTickTime + TimeDelta::FromMilliseconds(2000)));
animations->Animate(kInitialTickTime + TimeDelta::FromMilliseconds(5000));
animations->UpdateState(true, events.get());
EXPECT_EQ(1.f, client_.GetOpacity(element_id_, ElementListType::ACTIVE));
« no previous file with comments | « cc/animation/animation_player_unittest.cc ('k') | cc/animation/element_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698