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

Unified Diff: ios/web/shell/test/earl_grey/shell_matchers.mm

Issue 2167533002: [ios] EarlGrey test for scroll position restoration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comment Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/shell/test/earl_grey/shell_matchers.h ('k') | ios/web/shell/test/http_server_files/tall_page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/test/earl_grey/shell_matchers.mm
diff --git a/ios/web/shell/test/earl_grey/shell_matchers.mm b/ios/web/shell/test/earl_grey/shell_matchers.mm
index 91412dcf7f08329bc7956ce3e52c13510dd73ee9..12b9ddb9a9cd8a5f55d9db7392b6f41f990b000f 100644
--- a/ios/web/shell/test/earl_grey/shell_matchers.mm
+++ b/ios/web/shell/test/earl_grey/shell_matchers.mm
@@ -19,6 +19,10 @@ id<GREYMatcher> webViewContainingText(const std::string& text) {
return [GREYMatchers matcherForWebViewContainingText:text];
}
+id<GREYMatcher> webViewScrollView() {
+ return [GREYMatchers matcherForWebViewScrollView];
+}
+
id<GREYMatcher> addressFieldText(const std::string& text) {
return [GREYMatchers matcherForAddressFieldEqualToText:text];
}
@@ -44,6 +48,10 @@ id<GREYMatcher> addressField() {
return web::webViewContainingText(text, webState);
}
++ (id<GREYMatcher>)matcherForWebViewScrollView {
+ return web::webViewScrollView(web::shell_test_util::GetCurrentWebState());
+}
+
+ (id<GREYMatcher>)matcherForAddressFieldEqualToText:(const std::string&)text {
MatchesBlock matches = ^BOOL(UIView* view) {
if (![view isKindOfClass:[UITextField class]]) {
« no previous file with comments | « ios/web/shell/test/earl_grey/shell_matchers.h ('k') | ios/web/shell/test/http_server_files/tall_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698