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

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

Issue 2722983003: Reland Tab History and BrowserViewController CRWSessionEntry removal. (Closed)
Patch Set: TODO, early return Created 3 years, 10 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/chrome/browser/web/forms_egtest.mm ('k') | ios/web/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/visible_url_egtest.mm
diff --git a/ios/chrome/browser/web/visible_url_egtest.mm b/ios/chrome/browser/web/visible_url_egtest.mm
index 54f46b05b209876893bcfff7b6c64d57e2174531..f14423f2983af90ec487e12feb8bca1d32a3c541 100644
--- a/ios/chrome/browser/web/visible_url_egtest.mm
+++ b/ios/chrome/browser/web/visible_url_egtest.mm
@@ -18,6 +18,7 @@
#import "ios/web/public/test/http_server.h"
#include "ios/web/public/test/http_server_util.h"
#include "ios/web/public/test/response_providers/html_response_provider.h"
+#include "ios/web/public/test/url_test_util.h"
#include "url/gurl.h"
using chrome_test_util::WebViewContainingText;
@@ -237,8 +238,9 @@ - (void)testHistoryNavigation {
// though URL1 is a pending URL.
[[EarlGrey selectElementWithMatcher:chrome_test_util::BackButton()]
performAction:grey_longPress()];
- NSString* URL1Spec = base::SysUTF8ToNSString(_testURL1.spec());
- [[EarlGrey selectElementWithMatcher:grey_text(URL1Spec)]
+ NSString* URL1Title =
+ base::SysUTF16ToNSString(web::GetDisplayTitleForUrl(_testURL1));
+ [[EarlGrey selectElementWithMatcher:grey_text(URL1Title)]
performAction:grey_tap()];
GREYAssert([self waitForServerToReceiveRequestWithURL:_testURL1],
@"Last request URL: %@", self.lastRequestURLSpec);
« no previous file with comments | « ios/chrome/browser/web/forms_egtest.mm ('k') | ios/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698