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

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

Issue 151283006: Mac OS X: Show the Translate icon on Omnibox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue-307352-translate-bubble-2
Patch Set: Use kAnimateNone Created 6 years, 9 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
Index: chrome/browser/ui/cocoa/toolbar/toolbar_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/toolbar/toolbar_controller_unittest.mm b/chrome/browser/ui/cocoa/toolbar/toolbar_controller_unittest.mm
index e3bbfd31670effb6b835bc02670a960fe3fea879..469a9f188d1391a358a04ad99ba319f82e2dba67 100644
--- a/chrome/browser/ui/cocoa/toolbar/toolbar_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/toolbar/toolbar_controller_unittest.mm
@@ -216,6 +216,13 @@ TEST_F(ToolbarControllerTest, BookmarkBubblePoint) {
EXPECT_TRUE(NSPointInRect(starPoint, barFrame));
}
+TEST_F(ToolbarControllerTest, TranslateBubblePoint) {
+ const NSPoint translatePoint = [bar_ translateBubblePoint];
+ const NSRect barFrame =
+ [[bar_ view] convertRect:[[bar_ view] bounds] toView:nil];
+ EXPECT_TRUE(NSPointInRect(translatePoint, barFrame));
+}
+
TEST_F(ToolbarControllerTest, HoverButtonForEvent) {
base::scoped_nsobject<HitView> view(
[[HitView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100)]);
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm ('k') | chrome/browser/ui/cocoa/translate/translate_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698