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

Unified Diff: chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest.mm

Issue 3007025: Merge 54188 - [Mac] First pass at final sizing of toolbar items.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 5 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/cocoa/location_bar/autocomplete_text_field_unittest.mm
===================================================================
--- chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest.mm (revision 54684)
+++ chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest.mm (working copy)
@@ -427,7 +427,7 @@
TEST_F(AutocompleteTextFieldTest, ClickSelectsAll) {
EXPECT_FALSE([field_ currentEditor]);
- const NSPoint point(NSMakePoint(20.0, 5.0));
+ const NSPoint point = NSMakePoint(20.0, NSMidY([field_ bounds]));
NSEvent* downEvent(Event(field_, point, NSLeftMouseDown));
NSEvent* upEvent(Event(field_, point, NSLeftMouseUp));
[NSApp postEvent:upEvent atStart:YES];
@@ -468,7 +468,7 @@
TEST_F(AutocompleteTextFieldTest, DoubleClickSelectsWord) {
EXPECT_FALSE([field_ currentEditor]);
- const NSPoint point(NSMakePoint(20.0, 5.0));
+ const NSPoint point = NSMakePoint(20.0, NSMidY([field_ bounds]));
NSEvent* downEvent(Event(field_, point, NSLeftMouseDown, 1));
NSEvent* upEvent(Event(field_, point, NSLeftMouseUp, 1));
NSEvent* downEvent2(Event(field_, point, NSLeftMouseDown, 2));

Powered by Google App Engine
This is Rietveld 408576698