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

Unified Diff: chrome/test/data/extensions/api_test/webrequest/test_blocking.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
Index: chrome/test/data/extensions/api_test/webrequest/test_blocking.js
diff --git a/chrome/test/data/extensions/api_test/webrequest/test_blocking.js b/chrome/test/data/extensions/api_test/webrequest/test_blocking.js
index 93008a6a0903a70158ef92bbe7004590bf70199e..3cd5d9bbf4a9344b615ba40d06d94539cc803646 100644
--- a/chrome/test/data/extensions/api_test/webrequest/test_blocking.js
+++ b/chrome/test/data/extensions/api_test/webrequest/test_blocking.js
@@ -101,6 +101,7 @@ runTests([
details: {
url: getURLHttpSimpleLoad(),
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
},
retval: {cancel: true}
},
@@ -160,6 +161,7 @@ runTests([
details: {
url: getURLHttpSimpleLoad(),
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
}
},
{ label: "onResponseStarted",
@@ -230,6 +232,7 @@ runTests([
details: {
url: getURLHttpSimpleLoad(),
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
}
},
{ label: "onResponseStarted",
@@ -364,6 +367,7 @@ runTests([
details: {
url: getURLEchoUserAgent(),
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
}
},
{ label: "onResponseStarted",
@@ -439,6 +443,7 @@ runTests([
details: {
url: getURLEchoUserAgent(),
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
}
},
{ label: "onResponseStarted",
@@ -512,6 +517,7 @@ runTests([
details: {
url: getURLSetCookie(),
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
responseHeadersExist: true,
},
retval_function: function(name, details) {
@@ -602,6 +608,7 @@ runTests([
details: {
url: getURLNonUTF8SetCookie(),
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
responseHeadersExist: true,
},
retval_function: function(name, details) {
@@ -699,6 +706,7 @@ runTests([
details: {
url: getURLHttpSimpleLoad(),
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
},
retval: {redirectUrl: getURL("simpleLoad/a.html")}
},
@@ -943,6 +951,7 @@ runTests([
tabId: 1,
type: "xmlhttprequest",
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
}
},
{ label: "x-onCompleted",
@@ -1074,6 +1083,7 @@ function testLoadCORSImage(crossOriginAttributeValue) {
type: "image",
url: redirectTarget,
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200,
}
},
{ label: "onResponseStarted",

Powered by Google App Engine
This is Rietveld 408576698