summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/browser_window_controller_unittest.mm
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 16:58:35 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 16:58:35 +0000
commit6ad4d363216093052720febaf67545187d6f9997 (patch)
treeb7be6ce9a383130e2fa702589844e55ea6a9ddb4 /chrome/browser/cocoa/browser_window_controller_unittest.mm
parentee7eee364a280759822c9226c956c77881bd1449 (diff)
downloadchromium_src-6ad4d363216093052720febaf67545187d6f9997.zip
chromium_src-6ad4d363216093052720febaf67545187d6f9997.tar.gz
chromium_src-6ad4d363216093052720febaf67545187d6f9997.tar.bz2
Mac: Hide the bookmark bar in popup windows.
BUG=17625 BUG=23988 Review URL: http://codereview.chromium.org/255096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller_unittest.mm')
-rw-r--r--chrome/browser/cocoa/browser_window_controller_unittest.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller_unittest.mm b/chrome/browser/cocoa/browser_window_controller_unittest.mm
index e4ad364..29a3221 100644
--- a/chrome/browser/cocoa/browser_window_controller_unittest.mm
+++ b/chrome/browser/cocoa/browser_window_controller_unittest.mm
@@ -133,8 +133,13 @@ TEST_F(BrowserWindowControllerTest, TestFullscreen) {
}
TEST_F(BrowserWindowControllerTest, TestNormal) {
+ // Force the bookmark bar to be shown.
+ browser_helper_.profile()->GetPrefs()->
+ SetBoolean(prefs::kShowBookmarkBar, true);
+
// Make sure a normal BrowserWindowController is, uh, normal.
EXPECT_TRUE([controller_ isNormalWindow]);
+ EXPECT_TRUE([controller_ isBookmarkBarVisible]);
// And make sure a controller for a pop-up window is not normal.
scoped_ptr<Browser> popup_browser(Browser::CreateForPopup(
@@ -143,6 +148,7 @@ TEST_F(BrowserWindowControllerTest, TestNormal) {
initWithBrowser:popup_browser.get()
takeOwnership:NO]);
EXPECT_FALSE([controller_ isNormalWindow]);
+ EXPECT_FALSE([controller_ isBookmarkBarVisible]);
// The created BrowserWindowController gets autoreleased, so make
// sure we don't also release it.