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

Unified Diff: chrome/browser/cocoa/toolbar_controller_unittest.mm

Issue 171016: Bookmark STAR bubble (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « chrome/browser/cocoa/toolbar_controller.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/toolbar_controller_unittest.mm
===================================================================
--- chrome/browser/cocoa/toolbar_controller_unittest.mm (revision 23676)
+++ chrome/browser/cocoa/toolbar_controller_unittest.mm (working copy)
@@ -248,4 +248,13 @@
EXPECT_TRUE([bookmarkBarView isDescendantOf:[bar_ view]]);
}
+TEST_F(ToolbarControllerTest, StarButtonInWindowCoordinates) {
+ NSRect star = [bar_ starButtonInWindowCoordinates];
+ NSRect all = [[[bar_ view] window] frame];
+
+ // Make sure the star is completely inside the window rect
+ EXPECT_TRUE(NSContainsRect(all, star));
+}
+
+
} // namespace
« no previous file with comments | « chrome/browser/cocoa/toolbar_controller.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698