Chromium Code Reviews| Index: chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc |
| diff --git a/chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc b/chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc |
| index 5ef9154d57ab71a8e4fc47060c49b7855ff2fb78..97533e075d89e04155f398cb5baed0b3d5ba19d4 100644 |
| --- a/chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc |
| +++ b/chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc |
| @@ -163,7 +163,10 @@ void OpenBrowserUsingContextMenuOnRootWindow(aura::Window* root_window) { |
| gfx::Point chrome_icon = |
| GetChromeIconBoundsForRootWindow(root_window).CenterPoint(); |
| gfx::Point release_point = chrome_icon; |
| - release_point.Offset(50, -120); |
| + // 50 is the distance from the chrome icon to leftest of the screen. |
|
msw
2017/05/10 22:18:23
nit: s/leftest/the left edge/. Also, I'm not sure
minch1
2017/05/11 16:34:03
This is only my own understanding, I didn't check
msw
2017/05/11 17:13:39
Yeah, 0 sgtm; thanks for simplifying this mystifyi
|
| + // -153 moves from the chrome icon to the "New window" in the opened context |
|
msw
2017/05/10 22:18:23
nit: // -153 moves the cursor up to the "New windo
|
| + // menu. |
| + release_point.Offset(50, -153); |
| ui_controls::SendMouseMoveNotifyWhenDone( |
| chrome_icon.x(), chrome_icon.y(), |
| base::Bind(&WindowSizerContextMenuTest::Step1, release_point)); |