summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_button_cell_unittest.mm
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-31 22:02:49 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-31 22:02:49 +0000
commit324ad2f3d320abff71801dd3b4af2ff02100da40 (patch)
treece61a71c7d20ce630e0f3984b6c0809b0085c4f2 /chrome/browser/cocoa/bookmark_button_cell_unittest.mm
parentc8f67b0d6ceb690fbf02f15777356fbe03af9ac2 (diff)
downloadchromium_src-324ad2f3d320abff71801dd3b4af2ff02100da40.zip
chromium_src-324ad2f3d320abff71801dd3b4af2ff02100da40.tar.gz
chromium_src-324ad2f3d320abff71801dd3b4af2ff02100da40.tar.bz2
Make the "off the side" menu (chevron) behave like the other bookmark
bar folders. E.g. supports DragAndDrop. BUG=34910 TEST=Make sure you can DnD items to/from the "off the side" chevron. Make sure context menus on those buttons work as well (e.g. delete). Make sure the chevron is NOT draggable. Make sure the chevron works properly as a "hover open" button when dragging something else around; e.g. it pops open if you hover over it. (It's small so this may take patience). Drop a folder from the bar into itself. Make sure we don't crash. xib change: - chevron button is now BookmarkButton, not MenuButton. Also has BookmarkButtonCell in it. - "off the side" menu removed. Review URL: http://codereview.chromium.org/1520003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43263 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_button_cell_unittest.mm')
-rw-r--r--chrome/browser/cocoa/bookmark_button_cell_unittest.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_button_cell_unittest.mm b/chrome/browser/cocoa/bookmark_button_cell_unittest.mm
index cb467f5..63c043b 100644
--- a/chrome/browser/cocoa/bookmark_button_cell_unittest.mm
+++ b/chrome/browser/cocoa/bookmark_button_cell_unittest.mm
@@ -111,4 +111,11 @@ TEST_F(BookmarkButtonCellTest, BookmarkMouseForwarding) {
EXPECT_EQ(button.get()->exits_, 3);
}
+// Confirms a cell created in a nib is initialized properly
+TEST_F(BookmarkButtonCellTest, Awake) {
+ scoped_nsobject<BookmarkButtonCell> cell([[BookmarkButtonCell alloc] init]);
+ [cell awakeFromNib];
+ EXPECT_EQ(NSLeftTextAlignment, [cell alignment]);
+}
+
} // namespace