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

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

Issue 10843065: Add condition attribute for MIME media types from Content-Type header. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: dammit docs Created 8 years, 4 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 | « chrome/test/data/extensions/api_test/webrequest/declarative/headers.html.mock-http-headers ('k') | no next file » | 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_declarative.js
diff --git a/chrome/test/data/extensions/api_test/webrequest/test_declarative.js b/chrome/test/data/extensions/api_test/webrequest/test_declarative.js
index f40b7354eb1eb59badbb7c91cfad075d9a558b0a..16bdf3fd82b60452a00ce99962f5261318e6c774 100644
--- a/chrome/test/data/extensions/api_test/webrequest/test_declarative.js
+++ b/chrome/test/data/extensions/api_test/webrequest/test_declarative.js
@@ -51,6 +51,11 @@ function getURLHttpRedirectTest() {
"files/extensions/api_test/webrequest/declarative/a.html");
}
+function getURLHttpWithHeaders() {
+ return getServerURL(
+ "files/extensions/api_test/webrequest/declarative/headers.html");
+}
+
function getURLSetCookie() {
return getServerURL('set-cookie?Foo=Bar');
}
@@ -83,7 +88,7 @@ runTests([
{ label: "onErrorOccurred",
event: "onErrorOccurred",
details: {
- url: getURLHttpSimple(),
+ url: getURLHttpWithHeaders(),
fromCache: false,
error: "net::ERR_BLOCKED_BY_CLIENT"
}
@@ -98,10 +103,11 @@ runTests([
'ports': [testServerPort, [1000, 2000]],
'schemes': ["http"]
},
- 'resourceType': ["main_frame"]})],
+ 'resourceType': ["main_frame"],
+ 'contentType': ["text/html"]})],
'actions': [new CancelRequest()]}
],
- function() {navigateAndWait(getURLHttpSimple());}
+ function() {navigateAndWait(getURLHttpWithHeaders());}
);
},
« no previous file with comments | « chrome/test/data/extensions/api_test/webrequest/declarative/headers.html.mock-http-headers ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698