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

Unified Diff: ios/web/shell/test/meta_tags_egtest.mm

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/web/shell/test/meta_tags_egtest.mm
diff --git a/ios/web/shell/test/meta_tags_egtest.mm b/ios/web/shell/test/meta_tags_egtest.mm
index a1f92005ca99e1ed612891692bc847f28b4c08ce..ccebfa9fc3ab10c6842c205fc9e7d3e0479131ad 100644
--- a/ios/web/shell/test/meta_tags_egtest.mm
+++ b/ios/web/shell/test/meta_tags_egtest.mm
@@ -5,6 +5,7 @@
#include <map>
#include "base/strings/stringprintf.h"
+#include "base/strings/sys_string_conversions.h"
#import "base/test/ios/wait_util.h"
#import "ios/web/public/test/http_server.h"
#include "ios/web/public/test/http_server_util.h"
@@ -35,7 +36,6 @@ const char kRefreshMetaPageTemplate[] =
using web::test::HttpServer;
using web::AddressFieldText;
-using web::WebViewContainingText;
// META tag test cases for the web shell.
@interface MetaTagsTestCase : WebShellTestCase
@@ -75,8 +75,8 @@ using web::WebViewContainingText;
// Verify that redirect happened.
[[EarlGrey selectElementWithMatcher:AddressFieldText(destinationURL.spec())]
assertWithMatcher:grey_notNil()];
- [[EarlGrey selectElementWithMatcher:WebViewContainingText(kDestinationPage)]
- assertWithMatcher:grey_notNil()];
+ [ShellEarlGrey
+ waitForWebViewContainingText:base::SysUTF8ToNSString(kDestinationPage)];
}
@end

Powered by Google App Engine
This is Rietveld 408576698