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

Unified Diff: chrome/test/data/extensions/api_test/webrequest/test_simple.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_simple.js
diff --git a/chrome/test/data/extensions/api_test/webrequest/test_simple.js b/chrome/test/data/extensions/api_test/webrequest/test_simple.js
index 2ef4a05c11d366ff32e97951f4c2c213b27067a2..5a2218dc838d5ee753837db70b87d6ddc8133e8a 100644
--- a/chrome/test/data/extensions/api_test/webrequest/test_simple.js
+++ b/chrome/test/data/extensions/api_test/webrequest/test_simple.js
@@ -80,7 +80,8 @@ runTests([
details: {
url: getURLHttpSimpleLoadRedirect(),
responseHeadersExist: true,
- statusLine: "HTTP/1.1 301 Moved Permanently"
+ statusLine: "HTTP/1.1 301 Moved Permanently",
+ statusCode: 301
}
},
{ label: "onBeforeRedirect",
@@ -122,6 +123,7 @@ runTests([
url: getURLHttpSimpleLoad(),
responseHeadersExist: true,
statusLine: "HTTP/1.1 200 OK",
+ statusCode: 200
}
},
{ label: "onResponseStarted",

Powered by Google App Engine
This is Rietveld 408576698