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

Unified Diff: content/browser/service_worker/service_worker_browsertest.cc

Issue 2485423004: [Not for review] provide more specific error message of navigation preload redirect
Patch Set: Created 4 years, 1 month 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 | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_browsertest.cc
diff --git a/content/browser/service_worker/service_worker_browsertest.cc b/content/browser/service_worker/service_worker_browsertest.cc
index 58f3e9bb724e2a6fd27bfff13a6219479a20a6bc..6011d1ac2fc9e44ee4df0b4865f358a63c720e60 100644
--- a/content/browser/service_worker/service_worker_browsertest.cc
+++ b/content/browser/service_worker/service_worker_browsertest.cc
@@ -2031,10 +2031,10 @@ IN_PROC_BROWSER_TEST_P(ServiceWorkerNavigationPreloadTest, RejectRedirects) {
EXPECT_EQ(1, GetRequestCount(kPageUrl));
// The redirected request must not be sent.
EXPECT_EQ(0, GetRequestCount(kRedirectedPageUrl));
- // TODO(horo): When MojoAsyncResourceHandler will support redirection, we
- // shold provide more specific error message.
- EXPECT_EQ("NetworkError: Service Worker navigation preload network error.",
- GetTextContent());
+ EXPECT_EQ(
+ "NetworkError: Service Worker navigation preload doesn't suport "
+ "redirect.",
+ GetTextContent());
}
// Tests responding with the navigation preload response when the navigation
« no previous file with comments | « no previous file | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698