DescriptionConsolidated all CWVWebView test helpers inside web_view_test_util file.
Notable changes:
- LoadUrl was moved from ChromeWebViewTest to web_view_test_util
(this way API can be used in EG, integration and unit tests)
- LoadUrl returns bool and forces caller to use result (this way API
can be used in EG tests as well, which should not use ASSERT).
- TapChromeWebViewElementWithId was renamed to TapWebViewElementWithId
just for consistency
- TapWebViewElementWithId function forces caller to use result (this
way tests can assert in appropriate way)
- WaitForWebViewLoadCompletionOrTimeout returns bool and forces caller to
use result (this way API can be used in EG tests as well, which
should not use ASSERT)
- WaitForPageLoadCompletion renamed to
WaitForWebViewLoadCompletionOrTimeout just for consistency
Currently web_view_test_util has 6 functions and will be split if it
grows to larger size.
BUG=None
Review-Url: https://codereview.chromium.org/2940953003
Cr-Commit-Position: refs/heads/master@{#479972}
Committed: https://chromium.googlesource.com/chromium/src/+/e4ccee5a9fc9ac79623cc389f72ebbfdc04de10e
Patch Set 1 #
Total comments: 2
Patch Set 2 : Addressed review comments #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 23 (16 generated)
|