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

Unified Diff: ui/views/animation/ink_drop_animation_controller_impl_unittest.cc

Issue 1832963002: MD - add ripples to DL shelf items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix another TODO Created 4 years, 8 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
Index: ui/views/animation/ink_drop_animation_controller_impl_unittest.cc
diff --git a/ui/views/animation/ink_drop_animation_controller_impl_unittest.cc b/ui/views/animation/ink_drop_animation_controller_impl_unittest.cc
index 4f98549e0ffe18aa75f87c6903eecf84192a9d57..96e2d3ed199d76b815fd53305cab02fb240f2488 100644
--- a/ui/views/animation/ink_drop_animation_controller_impl_unittest.cc
+++ b/ui/views/animation/ink_drop_animation_controller_impl_unittest.cc
@@ -73,7 +73,7 @@ TEST_F(InkDropAnimationControllerImplTest,
HoverDoesntFadeInAfterAnimationIfHoverNotSet) {
ink_drop_host_.set_should_show_hover(true);
ink_drop_animation_controller_.SetHovered(false);
- ink_drop_animation_controller_.AnimateToState(InkDropState::QUICK_ACTION);
+ ink_drop_animation_controller_.AnimateToState(InkDropState::ACTION_TRIGGERED);
EXPECT_FALSE(task_runner_->HasPendingTask());
EXPECT_FALSE(is_hover_fading_in_or_visible());
@@ -83,7 +83,7 @@ TEST_F(InkDropAnimationControllerImplTest,
HoverFadesInAfterAnimationWhenHostIsHovered) {
ink_drop_host_.set_should_show_hover(true);
ink_drop_animation_controller_.SetHovered(true);
- ink_drop_animation_controller_.AnimateToState(InkDropState::QUICK_ACTION);
+ ink_drop_animation_controller_.AnimateToState(InkDropState::ACTION_TRIGGERED);
EXPECT_TRUE(task_runner_->HasPendingTask());
@@ -96,7 +96,7 @@ TEST_F(InkDropAnimationControllerImplTest,
HoverDoesntFadeInAfterAnimationWhenHostIsNotHovered) {
ink_drop_host_.set_should_show_hover(false);
ink_drop_animation_controller_.SetHovered(true);
- ink_drop_animation_controller_.AnimateToState(InkDropState::QUICK_ACTION);
+ ink_drop_animation_controller_.AnimateToState(InkDropState::ACTION_TRIGGERED);
EXPECT_TRUE(task_runner_->HasPendingTask());
@@ -112,7 +112,7 @@ TEST_F(InkDropAnimationControllerImplTest,
ink_drop_animation_controller_.SetHovered(true);
EXPECT_TRUE(is_hover_fading_in_or_visible());
- ink_drop_animation_controller_.AnimateToState(InkDropState::QUICK_ACTION);
+ ink_drop_animation_controller_.AnimateToState(InkDropState::ACTION_TRIGGERED);
EXPECT_FALSE(is_hover_fading_in_or_visible());
}
« no previous file with comments | « ui/views/animation/ink_drop_animation_controller_impl.cc ('k') | ui/views/animation/ink_drop_animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698