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

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

Issue 2798773002: Create ChromeEarlGrey waitForWebViewContainingText. (Closed)
Patch Set: better formatting Created 3 years, 8 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_earl_grey.h
diff --git a/ios/chrome/test/earl_grey/chrome_earl_grey.h b/ios/chrome/test/earl_grey/chrome_earl_grey.h
index 4eab5b9679826d4ad6e2fb3b9c74e080b1b32590..6d284974555e170cb5c6ef8feceaf418d59a6e3f 100644
--- a/ios/chrome/test/earl_grey/chrome_earl_grey.h
+++ b/ios/chrome/test/earl_grey/chrome_earl_grey.h
@@ -79,6 +79,10 @@ id ExecuteJavaScript(NSString* javascript,
// Waits for a Chrome error page. If it is not found within a timeout, a
// GREYAssert is induced.
+ (void)waitForErrorPage;
+
+// Waits for the current web view to contain |text|. If the condition is not met
+// within a timeout, a GREYAssert is induced.
++ (void)waitForWebViewContainingText:(NSString*)text;
Eugene But (OOO till 7-30) 2017/04/21 18:49:21 Is there a reason why this takes NSString and not
baxley 2017/04/21 20:09:01 I went back and forth on this. All the methods in
Eugene But (OOO till 7-30) 2017/04/21 21:37:45 |loadURL:| takes GURL, instead of NSURL, so using
baxley 2017/04/21 22:41:58 I'll look at it a little more and think about it.
@end
#endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_H_

Powered by Google App Engine
This is Rietveld 408576698