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

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

Issue 2167533002: [ios] EarlGrey test for scroll position restoration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ios/web/shell/test/earl_grey/shell_matchers.h
diff --git a/ios/web/shell/test/earl_grey/shell_matchers.h b/ios/web/shell/test/earl_grey/shell_matchers.h
index 2ae057394e87c8ab6646d05b636c27ab57da992b..85f51657d1d773ce007b47b5cf5b6c5622c9b066 100644
--- a/ios/web/shell/test/earl_grey/shell_matchers.h
+++ b/ios/web/shell/test/earl_grey/shell_matchers.h
@@ -11,6 +11,9 @@ namespace web {
// Shorthand for GREYMatchers::matcherForWebViewContainingText.
id<GREYMatcher> webViewContainingText(const std::string& text);
+// Shorthand for matcherForWebViewScrollView.
baxley 2016/07/20 15:27:25 nit: Could you add "GREYMatchers::", or remove it
Eugene But (OOO till 7-30) 2016/07/20 16:09:40 Done.
+id<GREYMatcher> webViewScrollView();
+
// Shorthand for GREYMatchers::matcherForAddressFieldEqualToText.
id<GREYMatcher> addressFieldText(const std::string& text);
@@ -30,6 +33,9 @@ id<GREYMatcher> addressField();
// Matcher for WKWebView containing |text|.
+ (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text;
+// Matcher for WKWebView's scroll view.
++ (id<GREYMatcher>)matcherForWebViewScrollView;
+
// Matcher for web shell address field text property equal to |text|.
+ (id<GREYMatcher>)matcherForAddressFieldEqualToText:(const std::string&)text;

Powered by Google App Engine
This is Rietveld 408576698