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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm

Issue 2208973003: Add some extra height to bookmark bar if the font wants to be larger (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address various nits from code review comments Created 4 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/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
index 1a798307e68745018637f8bcd0d6bc36e53ec61f..dcbc840eef6dc2f83b1e2735d9938d9f4ad417e7 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
@@ -1022,14 +1022,13 @@ TEST_F(BookmarkBarControllerTest, BookmarkButtonSizing) {
for (NSButton* button in buttons) {
if (kIsModeMaterial) {
- EXPECT_FLOAT_EQ(
- (chrome::kBookmarkBarHeight +
- bookmarks::kMaterialVisualHeightOffset) -
- 2 * bookmarks::BookmarkVerticalPadding(),
- [button frame].size.height);
+ EXPECT_FLOAT_EQ((chrome::kMinimumBookmarkBarHeight +
+ bookmarks::kMaterialVisualHeightOffset) -
+ 2 * bookmarks::BookmarkVerticalPadding(),
+ [button frame].size.height);
} else {
EXPECT_FLOAT_EQ(
- (chrome::kBookmarkBarHeight + bookmarks::kVisualHeightOffset) -
+ (chrome::kMinimumBookmarkBarHeight + bookmarks::kVisualHeightOffset) -
2 * bookmarks::BookmarkVerticalPadding(),
[button frame].size.height);
}

Powered by Google App Engine
This is Rietveld 408576698