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

Unified Diff: ios/web/web_state/ui/crw_web_controller_unittest.mm

Issue 2802163002: Removed CRWWebControllerInvalidUrlTest.LoadInvalidURL. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller_unittest.mm
diff --git a/ios/web/web_state/ui/crw_web_controller_unittest.mm b/ios/web/web_state/ui/crw_web_controller_unittest.mm
index 4b34cba3635a9402c0ed83e8aa2da5673a61b779..6b548101e5363e5db400b221494afc99aba0b10f 100644
--- a/ios/web/web_state/ui/crw_web_controller_unittest.mm
+++ b/ios/web/web_state/ui/crw_web_controller_unittest.mm
@@ -579,14 +579,6 @@ TEST_F(CRWWebStateSecurityStateTest, LoadHttpPage) {
// Real WKWebView is required for CRWWebControllerInvalidUrlTest.
typedef web::WebTestWithWebState CRWWebControllerInvalidUrlTest;
-// Tests that web controller navigates to about:blank if invalid URL is loaded.
-TEST_F(CRWWebControllerInvalidUrlTest, LoadInvalidURL) {
- GURL url(kInvalidURL);
- ASSERT_FALSE(url.is_valid());
- LoadHtml(@"<html><body></body></html>", url);
- EXPECT_EQ(GURL(url::kAboutBlankURL), web_state()->GetLastCommittedURL());
-}
-
// Tests that web controller does not navigate to about:blank if iframe src
// has invalid url. Web controller loads about:blank if page navigates to
// invalid url, but should do nothing if navigation is performed in iframe. This
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698