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

Unified Diff: ios/web/public/test/earl_grey/web_view_matchers.h

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/ios_web_shell_tests.gyp ('k') | ios/web/public/test/earl_grey/web_view_matchers.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/earl_grey/web_view_matchers.h
diff --git a/ios/web/public/test/earl_grey/web_view_matchers.h b/ios/web/public/test/earl_grey/web_view_matchers.h
index 9f52db501d10db4127dfd1d101745744eea470a5..1206dda3a4073b57c7e2015cbe1b5f0cab40e782 100644
--- a/ios/web/public/test/earl_grey/web_view_matchers.h
+++ b/ios/web/public/test/earl_grey/web_view_matchers.h
@@ -14,6 +14,9 @@ namespace web {
id<GREYMatcher> webViewContainingText(const std::string& text,
web::WebState* webState);
+// Shorthand for GREYMatchers::matcherForWebViewScrollViewInWebState.
+id<GREYMatcher> webViewScrollView(web::WebState* webState);
+
} // namespace web
@interface GREYMatchers (WebViewAdditions)
@@ -22,4 +25,8 @@ id<GREYMatcher> webViewContainingText(const std::string& text,
+ (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text
inWebState:(web::WebState*)webState;
+// Matcher for WKWebView's scroll view.
++ (id<GREYMatcher>)matcherForWebViewScrollViewInWebState:
+ (web::WebState*)webState;
+
@end
« no previous file with comments | « ios/web/ios_web_shell_tests.gyp ('k') | ios/web/public/test/earl_grey/web_view_matchers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698