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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip_unittest.cc

Issue 2690443002: cros-md: Remove the non-MD immersive mode code paths (Closed)
Patch Set: rebase & code comments 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/tabs/tab_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip_unittest.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip_unittest.cc b/chrome/browser/ui/views/tabs/tab_strip_unittest.cc
index 596423983ffcc2ccd283ab46ecb16106a75c72a8..66102a68d2925e159f46792d798158649f86ea44 100644
--- a/chrome/browser/ui/views/tabs/tab_strip_unittest.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip_unittest.cc
@@ -281,26 +281,6 @@ TEST_F(TabStripTest, VisibilityInOverflow) {
EXPECT_TRUE(tab_strip_->tab_at(tab_strip_->tab_count() - 1)->visible());
}
-TEST_F(TabStripTest, ImmersiveMode) {
- // Immersive mode defaults to off.
- EXPECT_FALSE(tab_strip_->IsImmersiveStyle());
-
- // Tab strip defaults to normal tab height.
- int normal_height = Tab::GetMinimumInactiveSize().height();
- EXPECT_EQ(normal_height, tab_strip_->GetPreferredSize().height());
-
- // Tab strip can toggle immersive mode.
- tab_strip_->SetImmersiveStyle(true);
- EXPECT_TRUE(tab_strip_->IsImmersiveStyle());
-
- // Now tabs have the immersive height.
- int immersive_height = Tab::GetImmersiveHeight();
- EXPECT_EQ(immersive_height, tab_strip_->GetPreferredSize().height());
-
- // Sanity-check immersive tabs are shorter than normal tabs.
- EXPECT_LT(immersive_height, normal_height);
-}
-
// Creates a tab strip in stacked layout mode and verifies that as we move
// across the strip at the top, middle, and bottom, events will target each tab
// in order.
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/tabs/tab_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698