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

Issue 2784943002: Remove matcher to wait for static HTML view. (Closed)

Created:
3 years, 8 months ago by baxley
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, baxley+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, asvitkine+watch_chromium.org, marq+watch_chromium.org, stkhapugin, huangml+watch_chromium.org, liaoyuke+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove matcher to wait for static HTML view. EarlGrey matchers should not wait. This adds a method waitForStaticHTMLViewContainingText, which should be used instead. BUG=700067 Review-Url: https://codereview.chromium.org/2784943002 Cr-Commit-Position: refs/heads/master@{#461529} Committed: https://chromium.googlesource.com/chromium/src/+/7f5396b89be45513d1a2f9a97c4416be04b57a2e

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : cleanup and rebase #

Patch Set 4 : correct string! #

Patch Set 5 : rebase for reading list #

Patch Set 6 : more cleanup #

Patch Set 7 : more better comments #

Total comments: 17

Patch Set 8 : reveiw comments #

Patch Set 9 : fix type #

Patch Set 10 : fix log statement #

Patch Set 11 : typo #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -160 lines) Patch
M ios/chrome/browser/metrics/tab_usage_recorder_egtest.mm View 2 chunks +2 lines, -12 lines 0 comments Download
M ios/chrome/browser/ui/activity_services/activity_service_controller_egtest.mm View 1 chunk +1 line, -5 lines 0 comments Download
M ios/chrome/browser/ui/error_page_egtest.mm View 5 chunks +2 lines, -16 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/reading_list_egtest.mm View 1 2 3 4 5 6 7 2 chunks +22 lines, -19 lines 0 comments Download
M ios/chrome/browser/ui/webui/web_ui_egtest.mm View 1 2 3 4 5 6 7 2 chunks +1 line, -3 lines 0 comments Download
M ios/chrome/browser/web/navigation_egtest.mm View 3 chunks +2 lines, -18 lines 0 comments Download
M ios/chrome/test/app/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A ios/chrome/test/app/static_html_view_test_util.h View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A ios/chrome/test/app/static_html_view_test_util.mm View 1 2 3 4 5 6 7 8 1 chunk +62 lines, -0 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_earl_grey.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_earl_grey.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +35 lines, -0 lines 3 comments Download
M ios/chrome/test/earl_grey/chrome_matchers.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_matchers.mm View 2 chunks +0 lines, -84 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
baxley
Would you mind doing a high-level review first? I put in a few comments where ...
3 years, 8 months ago (2017-03-31 20:59:22 UTC) #2
Eugene But (OOO till 7-30)
Even if this CL was not intended as a final CL, I did not mind ...
3 years, 8 months ago (2017-03-31 22:19:17 UTC) #3
baxley
comments addressed. Thanks for the detailed review and suggestions. https://codereview.chromium.org/2784943002/diff/120001/ios/chrome/test/app/static_html_view_test_util.h File ios/chrome/test/app/static_html_view_test_util.h (right): https://codereview.chromium.org/2784943002/diff/120001/ios/chrome/test/app/static_html_view_test_util.h#newcode15 ios/chrome/test/app/static_html_view_test_util.h:15: ...
3 years, 8 months ago (2017-04-03 18:10:41 UTC) #4
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/2784943002/200001
3 years, 8 months ago (2017-04-03 18:16:19 UTC) #7
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/7f5396b89be45513d1a2f9a97c4416be04b57a2e
3 years, 8 months ago (2017-04-03 20:53:25 UTC) #10
lpromero
https://codereview.chromium.org/2784943002/diff/200001/ios/chrome/test/earl_grey/chrome_earl_grey.mm File ios/chrome/test/earl_grey/chrome_earl_grey.mm (right): https://codereview.chromium.org/2784943002/diff/200001/ios/chrome/test/earl_grey/chrome_earl_grey.mm#newcode134 ios/chrome/test/earl_grey/chrome_earl_grey.mm:134: NSString* const kInternetDisconnectedError = The error is not about ...
3 years, 8 months ago (2017-04-19 11:35:10 UTC) #12
baxley
https://codereview.chromium.org/2784943002/diff/200001/ios/chrome/test/earl_grey/chrome_earl_grey.mm File ios/chrome/test/earl_grey/chrome_earl_grey.mm (right): https://codereview.chromium.org/2784943002/diff/200001/ios/chrome/test/earl_grey/chrome_earl_grey.mm#newcode134 ios/chrome/test/earl_grey/chrome_earl_grey.mm:134: NSString* const kInternetDisconnectedError = On 2017/04/19 11:35:10, lpromero wrote: ...
3 years, 8 months ago (2017-04-19 14:39:49 UTC) #13
lpromero
3 years, 8 months ago (2017-04-19 14:44:52 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/2784943002/diff/200001/ios/chrome/test/earl_g...
File ios/chrome/test/earl_grey/chrome_earl_grey.mm (right):

https://codereview.chromium.org/2784943002/diff/200001/ios/chrome/test/earl_g...
ios/chrome/test/earl_grey/chrome_earl_grey.mm:134: NSString* const
kInternetDisconnectedError =
On 2017/04/19 14:39:49, baxley wrote:
> On 2017/04/19 11:35:10, lpromero wrote:
> > The error is not about internet disconnection, but about page being
> unavailable.
> 
> Thanks for pointing out the inconsistency. Do you think the API make sense,
but
> should maybe have a more clear comment/method name, and definitely a better
> variable name here? Or do you think it should be doing something different?

The variable name might be sufficient, but since the error being waited upon is
specific, maybe a more specific method name could be worth it? I didn't feel the
need for it, I only thought of raising the issue for the variable.

Powered by Google App Engine
This is Rietveld 408576698