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

Unified Diff: ios/chrome/browser/ui/tabs/tab_strip_egtest.mm

Issue 2660143002: Removing iPad Tab Switcher experimental flag. (Closed)
Patch Set: Rebased. Created 3 years, 10 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: ios/chrome/browser/ui/tabs/tab_strip_egtest.mm
diff --git a/ios/chrome/browser/ui/tabs/tab_strip_egtest.mm b/ios/chrome/browser/ui/tabs/tab_strip_egtest.mm
index e6cb58c436c3d4caa60c052e8bce2ddc3ee044ae..c22b8cc7a80130335b02b0961f504463600f76d5 100644
--- a/ios/chrome/browser/ui/tabs/tab_strip_egtest.mm
+++ b/ios/chrome/browser/ui/tabs/tab_strip_egtest.mm
@@ -55,50 +55,4 @@
}
}
-// Tests switching the mode using the mode toggle.
-- (void)testTabStripSwitchModes {
- // The toggle button only exists on iPad, and when the Tablet Tab Switcher
- // isn't enabled.
- if (IsCompact() || experimental_flags::IsTabSwitcherEnabled()) {
- return;
- }
-
- // Open two normal tabs.
- [ChromeEarlGreyUI openNewTab];
- [ChromeEarlGreyUI openNewTab];
-
- // Open two incognito tabs.
- [ChromeEarlGreyUI openNewIncognitoTab];
- [ChromeEarlGreyUI openNewIncognitoTab];
-
- // Switch back to normal mode.
- [[EarlGrey selectElementWithMatcher:
- grey_accessibilityLabel(l10n_util::GetNSString(
- IDS_IOS_SWITCH_BROWSER_MODE_LEAVE_INCOGNITO))]
- performAction:grey_tap()];
- GREYAssertFalse(chrome_test_util::IsIncognitoMode(),
- @"Current tab is incognito.");
-
- // Switch back to incognito mode.
- [[EarlGrey selectElementWithMatcher:
- grey_accessibilityLabel(l10n_util::GetNSString(
- IDS_IOS_SWITCH_BROWSER_MODE_ENTER_INCOGNITO))]
- performAction:grey_tap()];
- GREYAssertTrue(chrome_test_util::IsIncognitoMode(),
- @"Current tab is not incognito.");
-
- // Close both incognito tabs.
- chrome_test_util::CloseAllTabsInCurrentMode();
-
- // We should be in normal mode.
- GREYAssertFalse(chrome_test_util::IsIncognitoMode(),
- @"Current tab is incognito.");
-
- // There should be no incognito switch.
- [[EarlGrey selectElementWithMatcher:
- grey_accessibilityID(l10n_util::GetNSString(
- IDS_IOS_SWITCH_BROWSER_MODE_ENTER_INCOGNITO))]
- assertWithMatcher:grey_notVisible()];
-}
-
@end
« no previous file with comments | « ios/chrome/browser/ui/tabs/tab_strip_controller.mm ('k') | ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698