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

Unified Diff: chrome/test/data/extensions/api_test/webrequest/test_auth_required.js

Issue 980543002: Adding statusCode for webRequest onHeadersReceived and onAuthRequired callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | chrome/test/data/extensions/api_test/webrequest/test_blocking.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/webrequest/test_auth_required.js
diff --git a/chrome/test/data/extensions/api_test/webrequest/test_auth_required.js b/chrome/test/data/extensions/api_test/webrequest/test_auth_required.js
index 500eaab4d599f7339c5e88f4e430f011f262c6ce..7e6b779449fac098a7bd81e20f88d89614c8ac9a 100644
--- a/chrome/test/data/extensions/api_test/webrequest/test_auth_required.js
+++ b/chrome/test/data/extensions/api_test/webrequest/test_auth_required.js
@@ -41,7 +41,8 @@ runTests([
details: {
url: url,
responseHeadersExist: true,
- statusLine: "HTTP/1.1 401 Unauthorized"
+ statusLine: "HTTP/1.1 401 Unauthorized",
+ statusCode: 401,
}
},
{ label: "onAuthRequired",
@@ -119,7 +120,8 @@ runTests([
details: {
url: url,
responseHeadersExist: true,
- statusLine: "HTTP/1.1 401 Unauthorized"
+ statusLine: "HTTP/1.1 401 Unauthorized",
+ statusCode: 401,
}
},
{ label: "onAuthRequired",
@@ -199,7 +201,8 @@ runTests([
details: {
url: url,
responseHeadersExist: true,
- statusLine: "HTTP/1.1 401 Unauthorized"
+ statusLine: "HTTP/1.1 401 Unauthorized",
+ statusCode: 401,
}
},
{ label: "onAuthRequired",
@@ -281,7 +284,8 @@ runTests([
details: {
url: url,
responseHeadersExist: true,
- statusLine: "HTTP/1.1 401 Unauthorized"
+ statusLine: "HTTP/1.1 401 Unauthorized",
+ statusCode: 401,
}
},
{ label: "onAuthRequired",
@@ -361,7 +365,8 @@ runTests([
details: {
url: url,
responseHeadersExist: true,
- statusLine: "HTTP/1.1 401 Unauthorized"
+ statusLine: "HTTP/1.1 401 Unauthorized",
+ statusCode: 401,
}
},
{ label: "onAuthRequired",
@@ -441,7 +446,8 @@ runTests([
details: {
url: url,
responseHeadersExist: true,
- statusLine: "HTTP/1.1 401 Unauthorized"
+ statusLine: "HTTP/1.1 401 Unauthorized",
+ statusCode: 401,
}
},
{ label: "onAuthRequired",
@@ -523,7 +529,8 @@ runTests([
details: {
url: url,
responseHeadersExist: true,
- statusLine: "HTTP/1.1 401 Unauthorized"
+ statusLine: "HTTP/1.1 401 Unauthorized",
+ statusCode: 401,
}
},
{ label: "onAuthRequired",
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/webrequest/test_blocking.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698