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

Issue 2836023003: fix testWindowMaximize bug (Closed)

Created:
3 years, 8 months ago by jzfeng
Modified:
3 years, 7 months ago
Reviewers:
johnchen, stgao
CC:
chromium-reviews, samuong+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

fix testWindowMaximize bug Add sleep to SetWindowBounds to give chrome ui enough time to respond to devtools command. BUG=chromedriver:1779 Review-Url: https://codereview.chromium.org/2836023003 Cr-Commit-Position: refs/heads/master@{#467893} Committed: https://chromium.googlesource.com/chromium/src/+/be8ffd36e6592c835e7c2c183ec87f1d44b52faa

Patch Set 1 #

Total comments: 3

Patch Set 2 : implement retry logic for Browser.setWindowBounds #

Patch Set 3 : fix testWindowMaximize for linux #

Patch Set 4 : remove error check for set bounds #

Patch Set 5 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -36 lines) Patch
M chrome/test/chromedriver/chrome/chrome_desktop_impl.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/test/chromedriver/chrome/chrome_desktop_impl.cc View 1 2 3 4 4 chunks +67 lines, -28 lines 0 comments Download
M chrome/test/chromedriver/test/run_py_tests.py View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (15 generated)
jzfeng
I managed to reproduce the bug on my mac. And verified the patch can fix ...
3 years, 8 months ago (2017-04-25 02:37:55 UTC) #2
stgao
+johnchen who is the new owner of Chromedriver https://codereview.chromium.org/2836023003/diff/1/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc File chrome/test/chromedriver/chrome/chrome_desktop_impl.cc (right): https://codereview.chromium.org/2836023003/diff/1/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc#newcode387 chrome/test/chromedriver/chrome/chrome_desktop_impl.cc:387: base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100)); ...
3 years, 8 months ago (2017-04-25 04:06:48 UTC) #8
jzfeng
https://codereview.chromium.org/2836023003/diff/1/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc File chrome/test/chromedriver/chrome/chrome_desktop_impl.cc (right): https://codereview.chromium.org/2836023003/diff/1/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc#newcode387 chrome/test/chromedriver/chrome/chrome_desktop_impl.cc:387: base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100)); On 2017/04/25 04:06:48, stgao(ping after 24h) wrote: > ...
3 years, 8 months ago (2017-04-25 04:39:42 UTC) #11
stgao
https://codereview.chromium.org/2836023003/diff/1/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc File chrome/test/chromedriver/chrome/chrome_desktop_impl.cc (right): https://codereview.chromium.org/2836023003/diff/1/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc#newcode387 chrome/test/chromedriver/chrome/chrome_desktop_impl.cc:387: base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100)); On 2017/04/25 04:39:41, jzfeng wrote: > On 2017/04/25 ...
3 years, 8 months ago (2017-04-25 16:59:40 UTC) #12
jzfeng
> Is it possible to force the ui event to happen or wait for it ...
3 years, 8 months ago (2017-04-25 23:36:23 UTC) #13
stgao
On 2017/04/25 23:36:23, jzfeng wrote: > > Is it possible to force the ui event ...
3 years, 8 months ago (2017-04-26 00:52:42 UTC) #14
johnchen
On 2017/04/26 00:52:42, stgao(ping after 24h) wrote: > On 2017/04/25 23:36:23, jzfeng wrote: > > ...
3 years, 8 months ago (2017-04-26 01:48:18 UTC) #15
jzfeng
Implemented the retry logic and add more error logging for each case. I have to ...
3 years, 8 months ago (2017-04-26 07:03:27 UTC) #16
jzfeng
On 2017/04/26 07:03:27, jzfeng wrote: > Implemented the retry logic and add more error logging ...
3 years, 8 months ago (2017-04-26 07:05:48 UTC) #17
jzfeng
On 2017/04/26 07:05:48, jzfeng wrote: > On 2017/04/26 07:03:27, jzfeng wrote: > > Implemented the ...
3 years, 8 months ago (2017-04-26 07:42:16 UTC) #20
johnchen
I don't fully understand the changes to ChromeDesktopImpl::SetWindowBounds. Previously, the code verifies that the window ...
3 years, 8 months ago (2017-04-26 17:10:47 UTC) #23
jzfeng
On 2017/04/26 17:10:47, johnchen wrote: > I don't fully understand the changes to ChromeDesktopImpl::SetWindowBounds. > ...
3 years, 7 months ago (2017-04-27 04:28:12 UTC) #24
johnchen
Thanks for the explanations. LGTM. Shuotao: Do you have any additional concerns?
3 years, 7 months ago (2017-04-27 15:58:23 UTC) #25
stgao
lgtm
3 years, 7 months ago (2017-04-28 01:22:18 UTC) #26
jzfeng
Thanks for the review!
3 years, 7 months ago (2017-04-28 05:04:12 UTC) #28
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/2836023003/80001
3 years, 7 months ago (2017-04-28 05:04:33 UTC) #29
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 05:20:11 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/be8ffd36e6592c835e7c2c183ec8...

Powered by Google App Engine
This is Rietveld 408576698