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

Unified Diff: chrome/browser/cocoa/browser_window_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/browser_window_controller.mm ('k') | chrome/browser/cocoa/toolbar_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/browser_window_controller_unittest.mm
===================================================================
--- chrome/browser/cocoa/browser_window_controller_unittest.mm (revision 23676)
+++ chrome/browser/cocoa/browser_window_controller_unittest.mm (working copy)
@@ -257,4 +257,15 @@
EXPECT_TRUE(NSEqualRects([toolbar frame], NSMakeRect(0, 561, 800, 39)));
}
+TEST_F(BrowserWindowControllerTest, TestTopLeftForBubble) {
+ NSPoint p = [controller_ topLeftForBubble];
+ NSRect all = [[controller_ window] frame];
+
+ // As a sanity check make sure the point is vaguely in the top left
+ // of the window.
+ EXPECT_GT(p.y, all.origin.y + (all.size.height/2));
+ EXPECT_LT(p.x, all.origin.x + (all.size.width/2));
+}
+
+
/* TODO(???): test other methods of BrowserWindowController */
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.mm ('k') | chrome/browser/cocoa/toolbar_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698