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

Unified Diff: ash/common/shelf/shelf_background_animator_unittest.cc

Issue 2768933003: [ash-md] Fixed ShelfBackgroundAnimator to not snap target values when being preempted. (Closed)
Patch Set: Created 3 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 | « ash/common/shelf/shelf_background_animator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_background_animator_unittest.cc
diff --git a/ash/common/shelf/shelf_background_animator_unittest.cc b/ash/common/shelf/shelf_background_animator_unittest.cc
index 9a3784cbd4234143f9a2bcb34cf440c1c648e2f3..e1a8f4fff0be26efcdb4746cb06e3ad8a51a2b50 100644
--- a/ash/common/shelf/shelf_background_animator_unittest.cc
+++ b/ash/common/shelf/shelf_background_animator_unittest.cc
@@ -278,19 +278,6 @@ TEST_F(ShelfBackgroundAnimatorTest,
EXPECT_NE(animator, test_api_->animator());
}
-TEST_F(ShelfBackgroundAnimatorTest,
- AnimationProgressesToTargetWhenStoppingUnfinishedAnimator) {
- PaintBackground(SHELF_BACKGROUND_OVERLAP, AnimationChangeType::ANIMATE);
-
- EXPECT_NE(kShelfTranslucentAlpha, observer_.GetBackgroundAlpha());
- EXPECT_NE(0, observer_.GetItemBackgroundAlpha());
-
- test_api_->animator()->Stop();
-
- EXPECT_EQ(kShelfTranslucentAlpha, observer_.GetBackgroundAlpha());
- EXPECT_EQ(0, observer_.GetItemBackgroundAlpha());
-}
-
// Verify observers are always notified, even when alpha values don't change.
TEST_F(ShelfBackgroundAnimatorTest,
ObserversAreNotifiedWhenSnappingToSameTargetBackground) {
« no previous file with comments | « ash/common/shelf/shelf_background_animator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698