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

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

Issue 2343453002: [ios] Use +[ShellEarlGrey loadURL:] for page loading in EG tests. (Closed)
Patch Set: Rebased Created 4 years, 3 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
« no previous file with comments | « no previous file | ios/web/shell/test/meta_tags_egtest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/test/context_menu_egtest.mm
diff --git a/ios/web/shell/test/context_menu_egtest.mm b/ios/web/shell/test/context_menu_egtest.mm
index 7404d044ca1f8d8bd11238f8594a2cef8b79ac6e..b32ba62c20f39b9f1ba66902f6c630217682bbf4 100644
--- a/ios/web/shell/test/context_menu_egtest.mm
+++ b/ios/web/shell/test/context_menu_egtest.mm
@@ -13,11 +13,11 @@
#import "ios/web/public/test/http_server.h"
#include "ios/web/public/test/http_server_util.h"
#import "ios/web/public/test/web_view_interaction_test_util.h"
-#include "ios/web/shell/test/app/navigation_test_util.h"
#import "ios/web/shell/test/app/web_shell_test_util.h"
#include "ios/web/shell/test/app/web_view_interaction_test_util.h"
#import "ios/web/shell/test/earl_grey/shell_base_test_case.h"
#import "ios/web/shell/test/earl_grey/shell_actions.h"
+#import "ios/web/shell/test/earl_grey/shell_earl_grey.h"
#import "ios/web/shell/test/earl_grey/shell_matchers.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -49,7 +49,7 @@ using testing::elementToDismissContextMenu;
"</span></body>";
web::test::SetUpSimpleHttpServer(responses);
- web::shell_test_util::LoadUrl(initialURL);
+ [ShellEarlGrey loadURL:initialURL];
[[EarlGrey selectElementWithMatcher:web::webView()]
performAction:web::longPressElementForContextMenu(
@@ -86,7 +86,7 @@ using testing::elementToDismissContextMenu;
"</body>";
web::test::SetUpSimpleHttpServer(responses);
- web::shell_test_util::LoadUrl(initialURL);
+ [ShellEarlGrey loadURL:initialURL];
[[EarlGrey selectElementWithMatcher:web::webView()]
performAction:web::longPressElementForContextMenu(
@@ -117,7 +117,7 @@ using testing::elementToDismissContextMenu;
"</body>";
web::test::SetUpSimpleHttpServer(responses);
- web::shell_test_util::LoadUrl(initialURL);
+ [ShellEarlGrey loadURL:initialURL];
[[EarlGrey selectElementWithMatcher:web::webView()]
performAction:web::longPressElementForContextMenu(
@@ -149,7 +149,7 @@ using testing::elementToDismissContextMenu;
"</body>";
web::test::SetUpSimpleHttpServer(responses);
- web::shell_test_util::LoadUrl(initialURL);
+ [ShellEarlGrey loadURL:initialURL];
[[EarlGrey selectElementWithMatcher:web::webView()]
performAction:web::longPressElementForContextMenu(
« no previous file with comments | « no previous file | ios/web/shell/test/meta_tags_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698