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

Unified Diff: ios/chrome/browser/web/stop_loading_egtest.mm

Issue 2798773002: Create ChromeEarlGrey waitForWebViewContainingText. (Closed)
Patch Set: more cleanup 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/browser/web/stop_loading_egtest.mm
diff --git a/ios/chrome/browser/web/stop_loading_egtest.mm b/ios/chrome/browser/web/stop_loading_egtest.mm
index 2648d039f44cc787faba1a7fcdd7ec87282c2b8e..707da8d7f641296a7bff1e24165aae42a16582a8 100644
--- a/ios/chrome/browser/web/stop_loading_egtest.mm
+++ b/ios/chrome/browser/web/stop_loading_egtest.mm
@@ -9,6 +9,7 @@
#include "base/time/time.h"
#include "ios/chrome/browser/ui/ui_util.h"
#include "ios/chrome/test/app/navigation_test_util.h"
+#import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
#import "ios/chrome/test/earl_grey/chrome_matchers.h"
#import "ios/chrome/test/earl_grey/chrome_test_case.h"
@@ -22,7 +23,6 @@
#endif
using chrome_test_util::ButtonWithAccessibilityLabelId;
-using chrome_test_util::WebViewContainingText;
namespace {
@@ -106,8 +106,7 @@ class InfinitePendingResponseProvider : public HtmlResponseProvider {
}
// Wait until the page is half loaded.
- [[EarlGrey selectElementWithMatcher:WebViewContainingText(kPageText)]
- assertWithMatcher:grey_notNil()];
+ [ChromeEarlGrey waitForWebViewContainingText:kPageText];
// On iPhone Stop/Reload button is a part of tools menu, so open it.
if (!IsIPadIdiom()) {

Powered by Google App Engine
This is Rietveld 408576698