Chromium Code Reviews

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.
Jump to:
View side-by-side diff with in-line comments
« 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