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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm

Issue 2765413002: Removing fast user switcher tutorial (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
Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
index 33a43df126aed09830d08a26771cd5ab46a7ee2f..b918e8a5fea1f847a12ab458d47e589b954d3977 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
@@ -217,37 +217,6 @@ TEST_F(ProfileChooserControllerTest, RightClickTutorialShownAfterReopen) {
StartProfileChooserController();
}
-TEST_F(ProfileChooserControllerTest, RightClickTutorialNotShownAfterDismiss) {
- // The welcome upgrade tutorial takes precedence so show it then close the
- // menu. Reopening the menu should show the tutorial.
- StartProfileChooserController();
-
- [controller() close];
- StartProfileChooserControllerWithTutorialMode(
- profiles::TUTORIAL_MODE_RIGHT_CLICK_SWITCHING);
-
- // Dismissing the tutorial should prevent it from being shown forever.
- [controller() dismissTutorial:nil];
- NSArray* subviews = [[[controller() window] contentView] subviews];
- ASSERT_EQ(2U, [subviews count]);
- subviews = [[subviews objectAtIndex:0] subviews];
-
- // There should be 3 views since there's no tutorial. There are 2 extra
- // buttons in the MD user menu.
- NSUInteger viewsCount = 5;
- ASSERT_EQ(viewsCount, [subviews count]);
-
- // Closing and reopening the menu shouldn't show the tutorial.
- [controller() close];
- StartProfileChooserControllerWithTutorialMode(
- profiles::TUTORIAL_MODE_RIGHT_CLICK_SWITCHING);
- subviews = [[[controller() window] contentView] subviews];
- ASSERT_EQ(2U, [subviews count]);
- subviews = [[subviews objectAtIndex:0] subviews];
-
- ASSERT_EQ(viewsCount, [subviews count]);
-}
-
TEST_F(ProfileChooserControllerTest,
LocalProfileActiveCardLinksWithNewMenu) {
StartProfileChooserController();
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm ('k') | chrome/browser/ui/profile_chooser_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698