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

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

Issue 2013523005: [Mac][Material Design] Bring bookmark hover state, etc. up to spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo, fix chevron button highlight state. Created 4 years, 7 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_folder_button_cell_unittest.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm
index f9ec83bf38d26ed95e007d98e69aad1cb2f45e76..516d3651c592cfe48e5d566c1a517e9d9759c732 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm
@@ -65,7 +65,11 @@ TEST_F(BookmarkBarFolderButtonCellTest, FaviconPositioning) {
float icon_x_with_title = ([cell imageRectForBounds:rect]).origin.x;
float cell_width_with_title = ([cell cellSize]).width;
- EXPECT_LT(icon_x_without_title, icon_x_with_title);
+ if (ui::MaterialDesignController::IsModeMaterial()) {
+ EXPECT_GT(icon_x_without_title, icon_x_with_title);
+ } else {
+ EXPECT_LT(icon_x_without_title, icon_x_with_title);
+ }
EXPECT_LT(cell_width_without_title, cell_width_with_title);
[folder_cell setBookmarkCellText:@"" image:image];

Powered by Google App Engine
This is Rietveld 408576698