diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 00:46:49 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 00:46:49 +0000 |
commit | 110a4e7b14519e6b3771dd9c0501618ed45fc837 (patch) | |
tree | 75eeaa9ef1c7569a7aed2282895155f7234b2d15 /chrome/browser/cocoa/browser_window_controller_unittest.mm | |
parent | df5a4ffbb5531ca94bcf9b6a9825a99a3413c47b (diff) | |
download | chromium_src-110a4e7b14519e6b3771dd9c0501618ed45fc837.zip chromium_src-110a4e7b14519e6b3771dd9c0501618ed45fc837.tar.gz chromium_src-110a4e7b14519e6b3771dd9c0501618ed45fc837.tar.bz2 |
Reverting 24700.
Review URL: http://codereview.chromium.org/181002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24708 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.mm | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller_unittest.mm b/chrome/browser/cocoa/browser_window_controller_unittest.mm index 36b5626..743c90c 100644 --- a/chrome/browser/cocoa/browser_window_controller_unittest.mm +++ b/chrome/browser/cocoa/browser_window_controller_unittest.mm @@ -179,6 +179,7 @@ TEST_F(BrowserWindowControllerTest, TestResizeViews) { NSView* contentView = [[tabstrip window] contentView]; NSView* toolbar = [controller_ toolbarView]; NSView* infobar = [controller_ infoBarContainerView]; + NSView* contentArea = [controller_ tabContentArea]; // We need to muck with the views a bit to put us in a consistent state before // we start resizing. In particular, we need to move the tab strip to be @@ -191,14 +192,9 @@ TEST_F(BrowserWindowControllerTest, TestResizeViews) { [tabstrip setFrame:tabstripFrame]; // Make sure each view is as tall as we expect. - ASSERT_EQ(36, NSHeight([toolbar frame])); + ASSERT_EQ(39, NSHeight([toolbar frame])); ASSERT_EQ(0, NSHeight([infobar frame])); - - // TODO(rohitrao):rewrite and reenable -#if 0 - NSView* contentArea = [controller_ tabContentArea]; - // Force a layout and check each view's frame. // contentView should be at 0,0 800x600 // contentArea should be at 0,0 800x561 @@ -259,7 +255,6 @@ TEST_F(BrowserWindowControllerTest, TestResizeViews) { EXPECT_TRUE(NSEqualRects([contentArea frame], NSMakeRect(0, 30, 800, 531))); EXPECT_TRUE(NSEqualRects([infobar frame], NSMakeRect(0, 561, 800, 0))); EXPECT_TRUE(NSEqualRects([toolbar frame], NSMakeRect(0, 561, 800, 39))); -#endif } TEST_F(BrowserWindowControllerTest, TestTopLeftForBubble) { |