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

Unified Diff: chrome/browser/cocoa/toolbar_controller_unittest.mm

Issue 155444: Mac pop-up window happier-ness.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/cocoa/toolbar_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/toolbar_controller_unittest.mm
===================================================================
--- chrome/browser/cocoa/toolbar_controller_unittest.mm (revision 20638)
+++ chrome/browser/cocoa/toolbar_controller_unittest.mm (working copy)
@@ -74,7 +74,24 @@
EXPECT_TRUE([bar_ bookmarkBarController]);
}
+// Make sure a "titlebar only" toolbar works
+TEST_F(ToolbarControllerTest, TitlebarOnly) {
+ NSView* view = [bar_ view];
+ EXPECT_TRUE([bar_ bookmarkBarController]);
+ [bar_ setHasToolbar:NO];
+ EXPECT_NE(view, [bar_ view]);
+ EXPECT_FALSE([bar_ bookmarkBarController]);
+
+ [bar_ setHasToolbar:YES];
+ EXPECT_EQ(view, [bar_ view]);
+ EXPECT_TRUE([bar_ bookmarkBarController]);
+
+ // Leave it off to make sure that's fine
+ [bar_ setHasToolbar:NO];
+}
+
+
// Make some changes to the enabled state of a few of the buttons and ensure
// that we're still in sync.
TEST_F(ToolbarControllerTest, UpdateEnabledState) {
« no previous file with comments | « chrome/browser/cocoa/toolbar_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698