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

Unified Diff: chrome/browser/ui/tabs/tab_strip_model_unittest.cc

Issue 10937028: Do not discard selected tab (Closed) Base URL: http://git.chromium.org/chromium/src.git@new
Patch Set: Created 8 years, 3 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/tabs/tab_strip_model_unittest.cc
diff --git a/chrome/browser/ui/tabs/tab_strip_model_unittest.cc b/chrome/browser/ui/tabs/tab_strip_model_unittest.cc
index 17b1b1d3239f3a218557dc42bfa5e59015420c7a..c73ffcd6b6efb850c065d4895025eeb20fc44b4f 100644
--- a/chrome/browser/ui/tabs/tab_strip_model_unittest.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model_unittest.cc
@@ -2205,10 +2205,11 @@ TEST_F(TabStripModelTest, DiscardTabContentsAt) {
EXPECT_FALSE(tabstrip.IsTabDiscarded(0));
EXPECT_FALSE(tabstrip.IsTabDiscarded(1));
- // Discarding the active tab should not crash.
+ // Discarding the active tab should not crash. Active tab will be reloaded
+ // again. So, This tab is not marked.
TabContents* null_contents3 = tabstrip.DiscardTabContentsAt(0);
ASSERT_EQ(2, tabstrip.count());
- EXPECT_TRUE(tabstrip.IsTabDiscarded(0));
+ EXPECT_FALSE(tabstrip.IsTabDiscarded(0));
EXPECT_FALSE(tabstrip.IsTabDiscarded(1));
ASSERT_EQ(null_contents3, tabstrip.GetTabContentsAt(0));
« chrome/browser/ui/tabs/tab_strip_model.cc ('K') | « chrome/browser/ui/tabs/tab_strip_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698