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_ |