summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/toolbar_controller_unittest.mm
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 15:17:11 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 15:17:11 +0000
commit203aa8f73aad8d63c836da3d00f1ab52c0021d8b (patch)
tree7a07fa5242f65aaa8522c79259b1e305f2d02de7 /chrome/browser/cocoa/toolbar_controller_unittest.mm
parentf6e0b0e9fcf638713d82b8e0cc5b3fcc9d845fef (diff)
downloadchromium_src-203aa8f73aad8d63c836da3d00f1ab52c0021d8b.zip
chromium_src-203aa8f73aad8d63c836da3d00f1ab52c0021d8b.tar.gz
chromium_src-203aa8f73aad8d63c836da3d00f1ab52c0021d8b.tar.bz2
Updates to clean up default theme and add hover states.
Patch by Cole. BUG=http://crbug.com/18573;http://crbug.com/18574;http://crbug.com/18360;http://crbug.com/18438 TEST=none Review URL: http://codereview.chromium.org/165499 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/toolbar_controller_unittest.mm')
-rw-r--r--chrome/browser/cocoa/toolbar_controller_unittest.mm28
1 files changed, 0 insertions, 28 deletions
diff --git a/chrome/browser/cocoa/toolbar_controller_unittest.mm b/chrome/browser/cocoa/toolbar_controller_unittest.mm
index 64532b0..b96726e 100644
--- a/chrome/browser/cocoa/toolbar_controller_unittest.mm
+++ b/chrome/browser/cocoa/toolbar_controller_unittest.mm
@@ -195,34 +195,6 @@ TEST_F(ToolbarControllerTest, TogglePageWrench) {
EXPECT_NE(NSWidth(originalLocationBarFrame), NSWidth([locationBar frame]));
}
-TEST_F(ToolbarControllerTest, BookmarkBarResizes) {
- NSView* bookmarkBarView = [[bar_ bookmarkBarController] view];
- ASSERT_EQ(0, NSHeight([bookmarkBarView frame]));
- [resizeDelegate_ setHeight:-1];
-
- // Resize the bookmarkbar to 30px. The toolbar should ask the delegate to
- // resize to 64px.
- [bar_ resizeView:bookmarkBarView newHeight:30];
- EXPECT_EQ(64, [resizeDelegate_ height]);
- EXPECT_EQ(30, NSHeight([bookmarkBarView frame]));
-
- // Resize the bookmarkbar back to 0px. Toolbar should be at 39px.
- [bar_ resizeView:bookmarkBarView newHeight:0];
- EXPECT_EQ(39, [resizeDelegate_ height]);
- EXPECT_EQ(0, NSHeight([bookmarkBarView frame]));
-
- // Resize the bookmarkbar to 5px. Toolbar should stay at 39px.
- [resizeDelegate_ setHeight:-1];
- [bar_ resizeView:bookmarkBarView newHeight:5];
- EXPECT_EQ(39, [resizeDelegate_ height]);
- EXPECT_EQ(5, NSHeight([bookmarkBarView frame]));
-
- // Resize the bookmarkbar to 6px. Toolbar should grow to 40px.
- [bar_ resizeView:bookmarkBarView newHeight:6];
- EXPECT_EQ(40, [resizeDelegate_ height]);
- EXPECT_EQ(6, NSHeight([bookmarkBarView frame]));
-}
-
// Make sure, by default, the bookmark bar is the full width of the
// toolbar.
TEST_F(ToolbarControllerTest, BookmarkBarIsFullWidth) {