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

Issue 891213002: Add a test for the mouseleave event on window. (Closed)

Created:
5 years, 10 months ago by Miyoung Shin
Modified:
5 years, 9 months ago
Reviewers:
pkotwicz, ananta, sky, Rick Byers
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a test for the mouseleave event on window. When opening the new window, it is opened on the current window. Even though the mouse position is not updated, the mouse leave event should be triggered on the previous window. However, when showing the context menu or the popup, the mouse leave event shouldn't be triggered. The test checks if the mouseleave event is triggered when showing the UI. BUG=450631 R=pkotwicz@chromium.org Committed: https://crrev.com/3e66e1af60b2f5b2f488ab8f4c3ca3532e57f049 Cr-Commit-Position: refs/heads/master@{#321280}

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Total comments: 22

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : #

Total comments: 7

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : #

Total comments: 5

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Total comments: 24

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -48 lines) Patch
M chrome/browser/mouseleave_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +91 lines, -17 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu_browsertest_util.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu_browsertest_util.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -18 lines 0 comments Download
M chrome/test/data/mouseleave.html View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (6 generated)
Miyoung Shin
rbyers@, I was aware of the issue that we couldn't show the context menu and ...
5 years, 10 months ago (2015-02-01 14:11:39 UTC) #1
Miyoung Shin
On 2015/02/01 14:11:39, Miyoung Shin wrote: > rbyers@, > I was aware of the issue ...
5 years, 10 months ago (2015-02-01 15:46:52 UTC) #2
Miyoung Shin
On 2015/02/01 15:46:52, Miyoung Shin wrote: > On 2015/02/01 14:11:39, Miyoung Shin wrote: > > ...
5 years, 10 months ago (2015-02-03 03:42:11 UTC) #3
Rick Byers
On 2015/02/03 03:42:11, Miyoung Shin wrote: > On 2015/02/01 15:46:52, Miyoung Shin wrote: > > ...
5 years, 10 months ago (2015-02-03 05:33:36 UTC) #4
Miyoung Shin
On 2015/02/03 05:33:36, Rick Byers wrote: > On 2015/02/03 03:42:11, Miyoung Shin wrote: > > ...
5 years, 10 months ago (2015-02-03 12:03:03 UTC) #5
Rick Byers
On 2015/02/03 12:03:03, Miyoung Shin wrote: > On 2015/02/03 05:33:36, Rick Byers wrote: > > ...
5 years, 10 months ago (2015-02-03 18:43:30 UTC) #7
Miyoung Shin
pkotwicz@, PTAL.
5 years, 10 months ago (2015-02-03 22:51:09 UTC) #8
pkotwicz
+rbyers@ I am trying out the MouseLeaveTest.ContextMenu in case where a mouse leave event is ...
5 years, 10 months ago (2015-02-04 15:56:18 UTC) #10
pkotwicz
I have added a few comments. Overall looks pretty good. Can you check that in ...
5 years, 10 months ago (2015-02-04 19:43:31 UTC) #11
Miyoung Shin
> Can you check that in addition to the test passing on the platforms where ...
5 years, 10 months ago (2015-02-08 14:29:05 UTC) #12
pkotwicz
Sorry for the long delay. Overall, looks pretty good https://codereview.chromium.org/891213002/diff/20001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/20001/chrome/browser/mouseleave_browsertest.cc#newcode184 chrome/browser/mouseleave_browsertest.cc:184: ...
5 years, 10 months ago (2015-02-10 22:50:15 UTC) #13
Miyoung Shin
https://codereview.chromium.org/891213002/diff/20001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/20001/chrome/browser/mouseleave_browsertest.cc#newcode184 chrome/browser/mouseleave_browsertest.cc:184: content::TitleWatcher done_title_watcher(tab, done_expected_title); On 2015/02/10 22:50:14, pkotwicz wrote: > ...
5 years, 10 months ago (2015-02-12 14:23:27 UTC) #14
pkotwicz
https://codereview.chromium.org/891213002/diff/40001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/40001/chrome/browser/mouseleave_browsertest.cc#newcode121 chrome/browser/mouseleave_browsertest.cc:121: // Others except OS_WIN do not send the mouseleave ...
5 years, 10 months ago (2015-02-12 16:42:04 UTC) #15
Miyoung Shin
https://codereview.chromium.org/891213002/diff/40001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/40001/chrome/browser/mouseleave_browsertest.cc#newcode121 chrome/browser/mouseleave_browsertest.cc:121: // Others except OS_WIN do not send the mouseleave ...
5 years, 10 months ago (2015-02-13 07:48:41 UTC) #16
Rick Byers
https://codereview.chromium.org/891213002/diff/40001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/40001/chrome/browser/mouseleave_browsertest.cc#newcode121 chrome/browser/mouseleave_browsertest.cc:121: // Others except OS_WIN do not send the mouseleave ...
5 years, 10 months ago (2015-02-13 08:59:43 UTC) #17
Miyoung Shin
https://codereview.chromium.org/891213002/diff/40001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/40001/chrome/browser/mouseleave_browsertest.cc#newcode121 chrome/browser/mouseleave_browsertest.cc:121: // Others except OS_WIN do not send the mouseleave ...
5 years, 10 months ago (2015-02-13 12:16:57 UTC) #18
pkotwicz
Once we figure out whether the window position affects whether a ET_MOUSE_EXITED event is sent ...
5 years, 10 months ago (2015-02-13 20:52:13 UTC) #19
pkotwicz
*window position affects whether a ET_MOUSE_EXITED event is sent when a new window is opened
5 years, 10 months ago (2015-02-13 20:52:55 UTC) #20
Miyoung Shin
> Once we figure out *window position affects whether a ET_MOUSE_EXITED >event is sent when ...
5 years, 10 months ago (2015-02-14 15:32:01 UTC) #21
pkotwicz
https://codereview.chromium.org/891213002/diff/100001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/100001/chrome/browser/mouseleave_browsertest.cc#newcode123 chrome/browser/mouseleave_browsertest.cc:123: It sounds like this test will pass / fail ...
5 years, 10 months ago (2015-02-17 19:59:29 UTC) #22
Miyoung Shin
it's minor but I couldn't find your comment in render_view_context_menu_browsertest_util.cc. I don't know why I ...
5 years, 10 months ago (2015-02-18 12:10:33 UTC) #23
pkotwicz
- Something weird that I noticed. I tried running MouseLeaveTest.NewWindow on Winodws 8 desktop (non ...
5 years, 10 months ago (2015-02-19 06:08:46 UTC) #24
pkotwicz
Sorry that I am slow reviewing today
5 years, 10 months ago (2015-02-19 06:09:07 UTC) #25
Miyoung Shin
On 2015/02/19 06:08:46, pkotwicz wrote: > - Something weird that I noticed. I tried running ...
5 years, 10 months ago (2015-02-19 16:11:05 UTC) #26
pkotwicz
I have both Windows 7 and Windows 8. I will do some investigating today :)
5 years, 10 months ago (2015-02-19 16:49:44 UTC) #27
pkotwicz
+ananta@ for his Windows expertise ananta@, what's the status of the --disable-legacy-window flag? In my ...
5 years, 10 months ago (2015-02-20 03:44:21 UTC) #29
Miyoung Shin
https://codereview.chromium.org/891213002/diff/120001/chrome/browser/renderer... File chrome/browser/renderer_context_menu/render_view_context_menu_browsertest_util.cc (right): https://codereview.chromium.org/891213002/diff/120001/chrome/browser/renderer... chrome/browser/renderer_context_menu/render_view_context_menu_browsertest_util.cc:86: > menu_observer.Wait(); > Sorry I meant |menu_visible_| being true ...
5 years, 10 months ago (2015-02-22 08:46:09 UTC) #30
Miyoung Shin
https://codereview.chromium.org/891213002/diff/160001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/160001/chrome/browser/mouseleave_browsertest.cc#newcode123 chrome/browser/mouseleave_browsertest.cc:123: IN_PROC_BROWSER_TEST_F(MouseLeaveTest, MAYBE_NewWindow) { On 2015/02/22 08:46:09, Miyoung Shin wrote: ...
5 years, 10 months ago (2015-02-22 15:32:26 UTC) #31
pkotwicz
ananta@, Ping!
5 years, 10 months ago (2015-02-24 16:04:54 UTC) #32
ananta
On 2015/02/24 16:04:54, pkotwicz wrote: > ananta@, Ping! Sorry missed this. It could be that ...
5 years, 10 months ago (2015-02-24 16:24:41 UTC) #33
Miyoung Shin
On 2015/02/24 16:24:41, ananta wrote: > On 2015/02/24 16:04:54, pkotwicz wrote: > > ananta@, Ping! ...
5 years, 9 months ago (2015-03-05 04:58:29 UTC) #34
pkotwicz
ananta@, Ping!
5 years, 9 months ago (2015-03-10 15:55:00 UTC) #35
ananta
On 2015/03/10 15:55:00, pkotwicz wrote: > ananta@, Ping! The WM_MOUSELEAVE message is received by the ...
5 years, 9 months ago (2015-03-10 23:34:30 UTC) #36
pkotwicz
LGTM I think that it is worth removing the MouseLeaveTest.NewWindow test. As ananta@ mentioned, there ...
5 years, 9 months ago (2015-03-11 00:47:40 UTC) #37
Miyoung Shin
https://codereview.chromium.org/891213002/diff/180001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/180001/chrome/browser/mouseleave_browsertest.cc#newcode7 chrome/browser/mouseleave_browsertest.cc:7: #include "chrome/app/chrome_command_ids.h" On 2015/03/11 00:47:39, pkotwicz wrote: > Can ...
5 years, 9 months ago (2015-03-11 05:42:27 UTC) #38
pkotwicz
sky@ can you please take a look? I think your CL is ready for OWNERS ...
5 years, 9 months ago (2015-03-11 20:35:45 UTC) #40
sky
On 2015/03/11 20:35:45, pkotwicz wrote: > sky@ can you please take a look? > > ...
5 years, 9 months ago (2015-03-11 21:51:13 UTC) #41
Miyoung Shin
On 2015/03/11 21:51:13, sky wrote: > On 2015/03/11 20:35:45, pkotwicz wrote: > > sky@ can ...
5 years, 9 months ago (2015-03-12 01:22:56 UTC) #42
sky
I assumed you were saying the popup menu was shown where the mouse was. On ...
5 years, 9 months ago (2015-03-12 15:30:28 UTC) #43
sky
https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc#newcode28 chrome/browser/mouseleave_browsertest.cc:28: void LoadTestPageAndWaitForMouseOver(content::WebContents* tab) { This should either return a ...
5 years, 9 months ago (2015-03-12 15:37:37 UTC) #44
pkotwicz
https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc#newcode108 chrome/browser/mouseleave_browsertest.cc:108: #if defined(OS_WIN) I think the MouseLeaveTest.NewWindow should be removed. ...
5 years, 9 months ago (2015-03-12 16:51:58 UTC) #45
sky
https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc#newcode163 chrome/browser/mouseleave_browsertest.cc:163: content::RunAllPendingInMessageLoop(); On 2015/03/12 16:51:57, pkotwicz wrote: > I suggested ...
5 years, 9 months ago (2015-03-12 19:54:13 UTC) #46
pkotwicz
https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc#newcode163 chrome/browser/mouseleave_browsertest.cc:163: content::RunAllPendingInMessageLoop(); I checked and on ChromeOS there aren't any ...
5 years, 9 months ago (2015-03-12 21:44:14 UTC) #47
sky
https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc#newcode163 chrome/browser/mouseleave_browsertest.cc:163: content::RunAllPendingInMessageLoop(); On 2015/03/12 21:44:14, pkotwicz wrote: > I checked ...
5 years, 9 months ago (2015-03-12 22:34:06 UTC) #48
Miyoung Shin
https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc#newcode163 chrome/browser/mouseleave_browsertest.cc:163: content::RunAllPendingInMessageLoop(); On 2015/03/12 22:34:06, sky wrote: > On 2015/03/12 ...
5 years, 9 months ago (2015-03-16 04:34:26 UTC) #49
pkotwicz
sky@ I do not understand what you are saying. Delayed synthetic mouse events are generated ...
5 years, 9 months ago (2015-03-16 19:20:41 UTC) #50
pkotwicz
Sorry, wrong crbug number. Correct crbug number: http://crbug.com/394672
5 years, 9 months ago (2015-03-16 19:22:42 UTC) #51
sky
On 2015/03/16 19:20:41, pkotwicz wrote: > sky@ I do not understand what you are saying. ...
5 years, 9 months ago (2015-03-16 21:24:16 UTC) #52
pkotwicz
sky@, I did some investigation. On Windows, you are right, WM_CAPTURECHANGED is not sent synchronously ...
5 years, 9 months ago (2015-03-17 00:05:49 UTC) #53
sky
SGTM On Mon, Mar 16, 2015 at 5:05 PM, <pkotwicz@chromium.org> wrote: > sky@, I did ...
5 years, 9 months ago (2015-03-17 17:13:29 UTC) #54
sky
Just be sure to add a good comment for the windows side. On Tue, Mar ...
5 years, 9 months ago (2015-03-17 17:13:49 UTC) #55
Miyoung Shin
https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/891213002/diff/200001/chrome/browser/mouseleave_browsertest.cc#newcode28 chrome/browser/mouseleave_browsertest.cc:28: void LoadTestPageAndWaitForMouseOver(content::WebContents* tab) { On 2015/03/12 15:37:37, sky wrote: ...
5 years, 9 months ago (2015-03-18 16:16:51 UTC) #56
sky
LGTM
5 years, 9 months ago (2015-03-18 20:58:43 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/891213002/220001
5 years, 9 months ago (2015-03-19 01:46:41 UTC) #60
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 9 months ago (2015-03-19 02:56:15 UTC) #61
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 02:56:57 UTC) #62
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/3e66e1af60b2f5b2f488ab8f4c3ca3532e57f049
Cr-Commit-Position: refs/heads/master@{#321280}

Powered by Google App Engine
This is Rietveld 408576698