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

Unified Diff: ios/web/shell/test/pdf_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 | « ios/web/shell/test/page_state_egtest.mm ('k') | ios/web/shell/test/plugin_placeholder_egtest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/test/pdf_egtest.mm
diff --git a/ios/web/shell/test/pdf_egtest.mm b/ios/web/shell/test/pdf_egtest.mm
index c9c676426d0fac6594e9c2f84c3ddd1a76d616a9..04884c2227b982cc3c2ae77e7df169ad938f636d 100644
--- a/ios/web/shell/test/pdf_egtest.mm
+++ b/ios/web/shell/test/pdf_egtest.mm
@@ -9,9 +9,9 @@
#import "ios/web/public/test/earl_grey/web_view_matchers.h"
#import "ios/web/public/test/http_server.h"
#include "ios/web/public/test/http_server_util.h"
-#include "ios/web/shell/test/app/navigation_test_util.h"
#import "ios/web/shell/test/app/web_shell_test_util.h"
#import "ios/web/shell/test/earl_grey/shell_base_test_case.h"
+#import "ios/web/shell/test/earl_grey/shell_earl_grey.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
@@ -53,7 +53,6 @@ id<GREYMatcher> webViewWithPdf() {
} // namespace
-using web::shell_test_util::LoadUrl;
using web::test::HttpServer;
// PDF test cases for the web shell.
@@ -65,7 +64,7 @@ using web::test::HttpServer;
// Tests MIME type of the loaded PDF document.
- (void)testMIMEType {
web::test::SetUpFileBasedHttpServer();
- LoadUrl(HttpServer::MakeUrl(kTestPDFURL));
+ [ShellEarlGrey loadURL:HttpServer::MakeUrl(kTestPDFURL)];
[[EarlGrey selectElementWithMatcher:webViewWithPdf()]
assertWithMatcher:grey_notNil()];
}
« no previous file with comments | « ios/web/shell/test/page_state_egtest.mm ('k') | ios/web/shell/test/plugin_placeholder_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698