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

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

Issue 7465090: [Mac] Replace the custom bookmark menus with native NSMenus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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_button_cell_unittest.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm
index 1f1c074ee6de25aa8ce04a1add5f617c30955ca3..863078d4f51b5c29f248fd76275ac72436040f30 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm
@@ -154,29 +154,4 @@ TEST_F(BookmarkButtonCellTest, Awake) {
EXPECT_EQ(NSLeftTextAlignment, [cell alignment]);
}
-// Subfolder arrow details.
-TEST_F(BookmarkButtonCellTest, FolderArrow) {
- BookmarkModel* model = helper_.profile()->GetBookmarkModel();
- const BookmarkNode* bar = model->bookmark_bar_node();
- const BookmarkNode* node = model->AddURL(bar, bar->child_count(),
- ASCIIToUTF16("title"),
- GURL("http://www.google.com"));
- scoped_nsobject<BookmarkButtonCell> cell(
- [[BookmarkButtonCell alloc] initForNode:node
- contextMenu:nil
- cellText:@"small"
- cellImage:nil]);
- EXPECT_TRUE(cell.get());
-
- NSSize size = [cell cellSize];
- // sanity check
- EXPECT_GE(size.width, 2);
- EXPECT_GE(size.height, 2);
-
- // Once we turn on arrow drawing make sure there is now room for it.
- [cell setDrawFolderArrow:YES];
- NSSize arrowSize = [cell cellSize];
- EXPECT_GT(arrowSize.width, size.width);
-}
-
} // namespace

Powered by Google App Engine
This is Rietveld 408576698