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

Issue 2448753002: Refactor wait_util so it isn't coupled to EarlGrey. (Closed)

Created:
4 years, 1 month ago by baxley
Modified:
4 years, 1 month ago
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor wait_util so it isn't coupled to EarlGrey. Create utility to wait for condition, else return false. This allows test code not dependent upon EarlGrey to use wait_util. Also, update web shell tests to use this utility. BUG=657886 Committed: https://crrev.com/e598fd1fd26e086580ca81c0a7e682045dd58ffb Cr-Commit-Position: refs/heads/master@{#427728}

Patch Set 1 #

Total comments: 2

Patch Set 2 : cleanup #

Total comments: 18

Patch Set 3 : comments addressed #

Patch Set 4 : missed a few comments #

Patch Set 5 : move import #

Patch Set 6 : rebase #

Patch Set 7 : compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -178 lines) Patch
M ios/testing/BUILD.gn View 1 chunk +13 lines, -0 lines 0 comments Download
M ios/testing/earl_grey/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ios/testing/earl_grey/wait_util.h View 1 chunk +0 lines, -12 lines 0 comments Download
M ios/testing/earl_grey/wait_util.mm View 1 chunk +3 lines, -12 lines 0 comments Download
A + ios/testing/wait_util.h View 1 2 3 4 2 chunks +9 lines, -11 lines 0 comments Download
A + ios/testing/wait_util.mm View 1 2 3 4 2 chunks +7 lines, -13 lines 0 comments Download
M ios/web/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/public/test/earl_grey/js_test_util.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/test/earl_grey/web_view_actions.mm View 1 2 3 chunks +25 lines, -24 lines 0 comments Download
M ios/web/public/test/earl_grey/web_view_matchers.mm View 4 chunks +50 lines, -62 lines 0 comments Download
M ios/web/public/test/web_view_interaction_test_util.h View 1 chunk +2 lines, -1 line 0 comments Download
M ios/web/public/test/web_view_interaction_test_util.mm View 1 2 4 chunks +27 lines, -25 lines 0 comments Download
M ios/web/shell/test/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M ios/web/shell/test/earl_grey/shell_matchers.mm View 1 2 3 4 5 6 2 chunks +11 lines, -4 lines 0 comments Download
M ios/web/shell/test/pdf_egtest.mm View 1 2 3 2 chunks +5 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
baxley
Could you review ios/testing/wait_util first, and let me know if you have concerns about the ...
4 years, 1 month ago (2016-10-25 00:00:53 UTC) #2
Eugene But (OOO till 7-30)
Thank you for cleanup! https://codereview.chromium.org/2448753002/diff/20001/ios/testing/wait_util.h File ios/testing/wait_util.h (right): https://codereview.chromium.org/2448753002/diff/20001/ios/testing/wait_util.h#newcode7 ios/testing/wait_util.h:7: This is now third wait_util ...
4 years, 1 month ago (2016-10-25 14:43:39 UTC) #3
baxley
Comments addressed (some with questions). PTAL! https://codereview.chromium.org/2448753002/diff/20001/ios/testing/wait_util.h File ios/testing/wait_util.h (right): https://codereview.chromium.org/2448753002/diff/20001/ios/testing/wait_util.h#newcode7 ios/testing/wait_util.h:7: On 2016/10/25 14:43:38, ...
4 years, 1 month ago (2016-10-25 18:50:05 UTC) #4
Eugene But (OOO till 7-30)
lgtm
4 years, 1 month ago (2016-10-25 22:04:18 UTC) #5
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/2448753002/80001
4 years, 1 month ago (2016-10-25 22:07:26 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/93637) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-10-25 22:13:31 UTC) #9
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/2448753002/120001
4 years, 1 month ago (2016-10-26 15:29:29 UTC) #12
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-10-26 17:13:31 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 17:50:48 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e598fd1fd26e086580ca81c0a7e682045dd58ffb
Cr-Commit-Position: refs/heads/master@{#427728}

Powered by Google App Engine
This is Rietveld 408576698