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

Issue 1890333002: Web shell test to go back and forward. (Closed)

Created:
4 years, 8 months ago by baxley
Modified:
4 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web shell test to go back and forward. Includes utilities for the simple local html server, and to verify text within a WKWebView. Tests and utilities are written in Earl Grey. BUG=604049, 604050 Committed: https://crrev.com/46f30edfad269c5e85aa22c3ff067df2548a1022 Cr-Commit-Position: refs/heads/master@{#389157}

Patch Set 1 #

Total comments: 5

Patch Set 2 : formatting #

Total comments: 45

Patch Set 3 : Refactor #

Total comments: 1

Patch Set 4 : make webState a property #

Total comments: 55

Patch Set 5 : more refactoring #

Patch Set 6 : few more updates #

Total comments: 27

Patch Set 7 : review comments #

Patch Set 8 : s/include/import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+629 lines, -43 lines) Patch
M ios/web/ios_web.gyp View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M ios/web/ios_web_shell_tests.gyp View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A ios/web/public/test/http_server_util.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A ios/web/public/test/http_server_util.mm View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A ios/web/public/test/response_providers/html_response_provider.h View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
A ios/web/public/test/response_providers/html_response_provider.mm View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A ios/web/public/test/response_providers/html_response_provider_impl.h View 1 2 1 chunk +69 lines, -0 lines 0 comments Download
A ios/web/public/test/response_providers/html_response_provider_impl.mm View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
A ios/web/shell/test/navigation_test_util.h View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
A ios/web/shell/test/navigation_test_util.mm View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A ios/web/shell/test/shell_matchers.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A ios/web/shell/test/shell_matchers.mm View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
M ios/web/shell/test/web_shell_navigation_egtest.mm View 1 2 3 4 5 6 1 chunk +66 lines, -43 lines 0 comments Download
A ios/web/shell/test/web_shell_test_util.h View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
A ios/web/shell/test/web_shell_test_util.mm View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A ios/web/shell/test/web_view_matchers.h View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
A ios/web/shell/test/web_view_matchers.mm View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
M ios/web/shell/view_controller.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M ios/web/shell/view_controller.mm View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (4 generated)
baxley
I added a few comments to patch 1 for clarification, but here's the summary: - ...
4 years, 8 months ago (2016-04-15 23:57:48 UTC) #2
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1890333002/diff/20001/ios/web/public/test/http_server_util.h File ios/web/public/test/http_server_util.h (right): https://codereview.chromium.org/1890333002/diff/20001/ios/web/public/test/http_server_util.h#newcode10 ios/web/public/test/http_server_util.h:10: #import "ios/web/public/test/http_server.h" These 2 includes are unused. https://codereview.chromium.org/1890333002/diff/20001/ios/web/public/test/http_server_util.h#newcode15 ios/web/public/test/http_server_util.h:15: ...
4 years, 8 months ago (2016-04-16 00:38:41 UTC) #3
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1890333002/diff/20001/ios/web/shell/test/utils/web_view_egutil.mm File ios/web/shell/test/utils/web_view_egutil.mm (right): https://codereview.chromium.org/1890333002/diff/20001/ios/web/shell/test/utils/web_view_egutil.mm#newcode70 ios/web/shell/test/utils/web_view_egutil.mm:70: base::scoped_nsobject<GREYElementMatcherBlock> matcherBlock( On 2016/04/16 00:38:40, Eugene But wrote: > ...
4 years, 8 months ago (2016-04-16 02:00:51 UTC) #4
rohitrao (ping after 24h)
My high-level takeaway is that I have no idea what's going on here =) I ...
4 years, 8 months ago (2016-04-18 11:44:25 UTC) #5
baxley
On 2016/04/18 11:44:25, rohitrao wrote: > My high-level takeaway is that I have no idea ...
4 years, 8 months ago (2016-04-18 13:50:55 UTC) #6
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1890333002/diff/20001/ios/web/shell/test/utils/web_view_egutil.mm File ios/web/shell/test/utils/web_view_egutil.mm (right): https://codereview.chromium.org/1890333002/diff/20001/ios/web/shell/test/utils/web_view_egutil.mm#newcode72 ios/web/shell/test/utils/web_view_egutil.mm:72: descriptionBlock:describe] retain]); On 2016/04/18 11:44:25, rohitrao wrote: > Isn't ...
4 years, 8 months ago (2016-04-18 15:22:54 UTC) #7
baxley
I made quite a few changes, here is a summary of a few changes, to ...
4 years, 8 months ago (2016-04-21 16:09:18 UTC) #8
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1890333002/diff/60001/ios/web/ios_web_shell_tests.gyp File ios/web/ios_web_shell_tests.gyp (right): https://codereview.chromium.org/1890333002/diff/60001/ios/web/ios_web_shell_tests.gyp#newcode30 ios/web/ios_web_shell_tests.gyp:30: 'shell/test/utils/navigation_egutil.h', Utils is very generic directory name and it's ...
4 years, 8 months ago (2016-04-21 17:07:56 UTC) #9
baxley
Thanks for the review. Comments addressed, I also moved a few files around so it ...
4 years, 8 months ago (2016-04-21 21:52:52 UTC) #10
Eugene But (OOO till 7-30)
Thanks for addressing the comments. LGTM https://codereview.chromium.org/1890333002/diff/100001/ios/web/shell/test/navigation_test_util.mm File ios/web/shell/test/navigation_test_util.mm (right): https://codereview.chromium.org/1890333002/diff/100001/ios/web/shell/test/navigation_test_util.mm#newcode7 ios/web/shell/test/navigation_test_util.mm:7: #import <EarlGrey/EarlGrey.h> Drop ...
4 years, 8 months ago (2016-04-21 22:53:08 UTC) #11
baxley
On 2016/04/21 22:53:08, Eugene But wrote: > Thanks for addressing the comments. LGTM > > ...
4 years, 8 months ago (2016-04-22 00:39:40 UTC) #12
Eugene But (OOO till 7-30)
On 2016/04/22 00:39:40, baxley wrote: > On 2016/04/21 22:53:08, Eugene But wrote: > > Thanks ...
4 years, 8 months ago (2016-04-22 01:21:28 UTC) #13
baxley
And now actually publishing my comments. :P https://codereview.chromium.org/1890333002/diff/100001/ios/web/shell/test/navigation_test_util.mm File ios/web/shell/test/navigation_test_util.mm (right): https://codereview.chromium.org/1890333002/diff/100001/ios/web/shell/test/navigation_test_util.mm#newcode7 ios/web/shell/test/navigation_test_util.mm:7: #import <EarlGrey/EarlGrey.h> ...
4 years, 8 months ago (2016-04-22 02:02:59 UTC) #14
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1890333002/diff/100001/ios/web/shell/test/shell_matchers.h File ios/web/shell/test/shell_matchers.h (right): https://codereview.chromium.org/1890333002/diff/100001/ios/web/shell/test/shell_matchers.h#newcode23 ios/web/shell/test/shell_matchers.h:23: GREY_EXPORT id<GREYMatcher> shell_backButton(); On 2016/04/22 02:02:59, baxley wrote: > ...
4 years, 8 months ago (2016-04-22 02:33:29 UTC) #15
baxley
Okay, I made the include->import change. I'll leave it as extern "C" for this CL ...
4 years, 8 months ago (2016-04-22 13:32:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890333002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890333002/140001
4 years, 8 months ago (2016-04-22 16:51:38 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-22 17:48:33 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:49:28 UTC) #22
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/46f30edfad269c5e85aa22c3ff067df2548a1022
Cr-Commit-Position: refs/heads/master@{#389157}

Powered by Google App Engine
This is Rietveld 408576698