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

Issue 2494713003: Reenable Tabdragging tests failing because of IsWindowPositionManaged() (Closed)

Created:
4 years, 1 month ago by afakhry
Modified:
4 years ago
CC:
chromium-reviews, tfarina, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reenable Tabdragging tests failing because of IsWindowPositionManaged() It used to be exiting the move loop and clearing the move_loop_widget_ before EndDrag() had a chance to set the window position to manageable again. This CL adds a maximized browser window waiter, and moves setting the window position managed logic to ash. BUG=626761, 331924 TEST=interactive_ui_tests --gtest_filter=TabDragging* Committed: https://crrev.com/c813d7634e5c6ba6c808e326778b0cdb4f6e773c Cr-Commit-Position: refs/heads/master@{#435638}

Patch Set 1 #

Patch Set 2 : Fix tests failing at IsMaximized in Chrome desktop Linux #

Patch Set 3 : Test what's happening on bot! #

Patch Set 4 : run test on bot #

Patch Set 5 : run test on bot 3 #

Patch Set 6 : I know now why the test is failing but I'll keep it disabled until we make a decision #

Total comments: 8

Patch Set 7 : pkasting comments #

Total comments: 3

Patch Set 8 : moving to ash #

Total comments: 4

Patch Set 9 : Test window position auto managed setting in ash #

Total comments: 4

Patch Set 10 : Adding a better ash test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -49 lines) Patch
M ash/wm/toplevel_window_event_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M ash/wm/toplevel_window_event_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 4 5 6 7 9 chunks +1 line, -34 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 3 4 5 6 8 chunks +59 lines, -15 lines 0 comments Download

Messages

Total messages: 82 (47 generated)
afakhry
pkasting, please review. Thank you!
4 years, 1 month ago (2016-11-16 18:18:23 UTC) #18
Peter Kasting
I don't really know the tab_drag_controller.cc code, so I don't actually know what the change ...
4 years, 1 month ago (2016-11-17 01:32:49 UTC) #19
afakhry
https://codereview.chromium.org/2494713003/diff/120001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/2494713003/diff/120001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode1118 chrome/browser/ui/views/tabs/tab_drag_controller.cc:1118: move_loop_widget_ = NULL; On 2016/11/17 01:32:49, Peter Kasting wrote: ...
4 years, 1 month ago (2016-11-17 22:51:05 UTC) #22
Peter Kasting
https://codereview.chromium.org/2494713003/diff/120001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc File chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc (right): https://codereview.chromium.org/2494713003/diff/120001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc#newcode814 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc:814: base::Unretained(this))); On 2016/11/17 22:51:05, afakhry wrote: > On 2016/11/17 ...
4 years, 1 month ago (2016-11-17 23:05:24 UTC) #24
afakhry
https://codereview.chromium.org/2494713003/diff/120001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc File chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc (right): https://codereview.chromium.org/2494713003/diff/120001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc#newcode814 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc:814: base::Unretained(this))); On 2016/11/17 23:05:24, Peter Kasting wrote: > On ...
4 years, 1 month ago (2016-11-18 16:45:36 UTC) #27
Peter Kasting
The unittest LGTM. I'll leave sky to answer the questions we had about refactoring the ...
4 years, 1 month ago (2016-11-18 19:05:01 UTC) #28
sky
https://codereview.chromium.org/2494713003/diff/140001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/2494713003/diff/140001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode1117 chrome/browser/ui/views/tabs/tab_drag_controller.cc:1117: SetWindowPositionManaged(move_loop_widget_->GetNativeWindow(), true); Can you clarify why tab dragging code ...
4 years, 1 month ago (2016-11-19 14:55:03 UTC) #29
afakhry
https://codereview.chromium.org/2494713003/diff/140001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/2494713003/diff/140001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode1117 chrome/browser/ui/views/tabs/tab_drag_controller.cc:1117: SetWindowPositionManaged(move_loop_widget_->GetNativeWindow(), true); On 2016/11/19 14:55:03, sky wrote: > Can ...
4 years, 1 month ago (2016-11-22 18:15:05 UTC) #30
sky
+skuhne Stefan added the code here: https://chromiumcodereview.appspot.com/11085053 . Stefan, the question is can we move ...
4 years ago (2016-11-22 20:58:01 UTC) #32
Mr4D (OOO till 08-26)
From glancing at the code I would say yes. On Tue, Nov 22, 2016 at ...
4 years ago (2016-11-23 16:04:48 UTC) #33
afakhry
sky and Mr4D, PTAL. Thanks!
4 years ago (2016-11-28 17:11:08 UTC) #40
sky
https://codereview.chromium.org/2494713003/diff/160001/ash/wm/toplevel_window_event_handler.cc File ash/wm/toplevel_window_event_handler.cc (right): https://codereview.chromium.org/2494713003/diff/160001/ash/wm/toplevel_window_event_handler.cc#newcode96 ash/wm/toplevel_window_event_handler.cc:96: window_state->set_window_position_managed(false); How about adding test coverage of this to ...
4 years ago (2016-11-28 18:30:43 UTC) #43
afakhry
https://codereview.chromium.org/2494713003/diff/160001/ash/wm/toplevel_window_event_handler.cc File ash/wm/toplevel_window_event_handler.cc (right): https://codereview.chromium.org/2494713003/diff/160001/ash/wm/toplevel_window_event_handler.cc#newcode96 ash/wm/toplevel_window_event_handler.cc:96: window_state->set_window_position_managed(false); On 2016/11/28 18:30:42, sky wrote: > How about ...
4 years ago (2016-11-28 19:22:29 UTC) #48
Mr4D (OOO till 08-26)
Please see comment. beside that lgtm https://codereview.chromium.org/2494713003/diff/180001/ash/wm/toplevel_window_event_handler_unittest.cc File ash/wm/toplevel_window_event_handler_unittest.cc (right): https://codereview.chromium.org/2494713003/diff/180001/ash/wm/toplevel_window_event_handler_unittest.cc#newcode83 ash/wm/toplevel_window_event_handler_unittest.cc:83: window_state->window_position_managed(); I might ...
4 years ago (2016-11-28 19:32:56 UTC) #49
sky
https://codereview.chromium.org/2494713003/diff/180001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc File chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc (right): https://codereview.chromium.org/2494713003/diff/180001/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc#newcode823 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc:823: base::MessageLoop::current()->task_runner()->PostTask( It's generally preferable to install a listener that ...
4 years ago (2016-11-28 21:31:50 UTC) #52
afakhry
https://codereview.chromium.org/2494713003/diff/180001/ash/wm/toplevel_window_event_handler_unittest.cc File ash/wm/toplevel_window_event_handler_unittest.cc (right): https://codereview.chromium.org/2494713003/diff/180001/ash/wm/toplevel_window_event_handler_unittest.cc#newcode83 ash/wm/toplevel_window_event_handler_unittest.cc:83: window_state->window_position_managed(); On 2016/11/28 19:32:56, Mr4D wrote: > I might ...
4 years ago (2016-11-28 22:54:25 UTC) #55
sky
On 2016/11/28 22:54:25, afakhry wrote: > https://codereview.chromium.org/2494713003/diff/180001/ash/wm/toplevel_window_event_handler_unittest.cc > File ash/wm/toplevel_window_event_handler_unittest.cc (right): > > https://codereview.chromium.org/2494713003/diff/180001/ash/wm/toplevel_window_event_handler_unittest.cc#newcode83 > ...
4 years ago (2016-11-28 23:34:45 UTC) #57
Elliot Glaysher
On 2016/11/28 23:34:45, sky wrote: > On 2016/11/28 22:54:25, afakhry wrote: > > > https://codereview.chromium.org/2494713003/diff/180001/ash/wm/toplevel_window_event_handler_unittest.cc ...
4 years ago (2016-11-28 23:43:19 UTC) #58
afakhry
On 2016/11/28 23:43:19, Elliot Glaysher wrote: > On 2016/11/28 23:34:45, sky wrote: > > On ...
4 years ago (2016-11-29 00:35:04 UTC) #61
afakhry
Friendly ping.
4 years ago (2016-11-30 20:49:16 UTC) #62
sky
To be clear, you're pining erg here, right? On Wed, Nov 30, 2016 at 12:49 ...
4 years ago (2016-11-30 22:03:57 UTC) #63
Elliot Glaysher
On 2016/11/30 22:03:57, sky wrote: > To be clear, you're pining erg here, right? > ...
4 years ago (2016-11-30 22:15:00 UTC) #64
afakhry
On 2016/11/30 22:15:00, Elliot Glaysher wrote: > On 2016/11/30 22:03:57, sky wrote: > > To ...
4 years ago (2016-11-30 23:40:34 UTC) #65
Elliot Glaysher
On 2016/11/30 23:40:34, afakhry wrote: > On 2016/11/30 22:15:00, Elliot Glaysher wrote: > > On ...
4 years ago (2016-11-30 23:59:28 UTC) #66
afakhry
On 2016/11/30 23:59:28, Elliot Glaysher wrote: > On 2016/11/30 23:40:34, afakhry wrote: > > On ...
4 years ago (2016-12-01 02:24:56 UTC) #67
sky
Ok, LGTM
4 years ago (2016-12-01 15:53:07 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2494713003/200001
4 years ago (2016-12-01 16:54:18 UTC) #71
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years ago (2016-12-01 17:34:10 UTC) #74
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/c813d7634e5c6ba6c808e326778b0cdb4f6e773c Cr-Commit-Position: refs/heads/master@{#435638}
4 years ago (2016-12-01 17:37:55 UTC) #76
Ken Rockot(use gerrit already)
On 2016/12/01 at 17:37:55, commit-bot wrote: > Patchset 10 (id:??) landed as https://crrev.com/c813d7634e5c6ba6c808e326778b0cdb4f6e773c > Cr-Commit-Position: ...
4 years ago (2016-12-01 19:48:25 UTC) #77
findit-for-me
FYI: Findit identified this CL at revision 435638 as the culprit for failures in the ...
4 years ago (2016-12-01 20:31:45 UTC) #78
afakhry
On 2016/12/01 20:31:45, findit-for-me wrote: > FYI: Findit identified this CL at revision 435638 as ...
4 years ago (2016-12-01 20:43:00 UTC) #79
afakhry
On 2016/12/01 20:43:00, afakhry wrote: > On 2016/12/01 20:31:45, findit-for-me wrote: > > FYI: Findit ...
4 years ago (2016-12-01 20:58:55 UTC) #80
Ken Rockot(use gerrit already)
On 2016/12/01 at 20:58:55, afakhry wrote: > On 2016/12/01 20:43:00, afakhry wrote: > > On ...
4 years ago (2016-12-01 22:06:41 UTC) #81
Ken Rockot(use gerrit already)
4 years ago (2016-12-01 22:38:44 UTC) #82
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:200001) has been created in
https://codereview.chromium.org/2550533002/ by rockot@chromium.org.

The reason for reverting is: Causing failures in ash_unittests. See CL comments
for details. If you have a fix, please reland with the fix applied..

Powered by Google App Engine
This is Rietveld 408576698