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

Unified Diff: ios/chrome/test/earl_grey/chrome_matchers.h

Issue 2952343002: EG Tests for Sad Tab View (Closed)
Patch Set: Created 3 years, 6 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/chrome/test/earl_grey/chrome_matchers.h
diff --git a/ios/chrome/test/earl_grey/chrome_matchers.h b/ios/chrome/test/earl_grey/chrome_matchers.h
index d9002c725c6cfdf0d1a4396a94b307834064e9b3..a474ac4cdb522de90d8926da50f7b42d774dbffa 100644
--- a/ios/chrome/test/earl_grey/chrome_matchers.h
+++ b/ios/chrome/test/earl_grey/chrome_matchers.h
@@ -126,6 +126,11 @@ id<GREYMatcher> ContentSettingsButton();
// Returns matcher for the back button on a settings menu.
id<GREYMatcher> SettingsMenuBackButton();
+// Returns matcher that looks for text in UILabel, UITextView, and UITextField
+// objects. The text comparison is performed with NSString's containsText:
baxley 2017/06/26 08:25:37 Is it worthwhile exposing the implementation detai
PL 2017/06/26 23:51:47 Done!
+// method.
+id<GREYMatcher> ContainsText(NSString* text);
baxley 2017/06/26 08:25:37 Can you think of many other use cases where this i
PL 2017/06/26 23:51:47 I was a bit surprised this was the first time this
+
} // namespace chrome_test_util
#endif // IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_

Powered by Google App Engine
This is Rietveld 408576698