| 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];
|
|
|