| 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 */
|
|
|