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

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

Issue 10012004: Implemented proper support for checking schemes and requested resource types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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_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 926998c1f2deb5f9614af4608e3c2ac9e77f0fd6..d79c9d8df846086c7061d959bb6b0cc54cb81a69 100644
--- a/chrome/test/data/extensions/api_test/webrequest/test_declarative.js
+++ b/chrome/test/data/extensions/api_test/webrequest/test_declarative.js
@@ -24,7 +24,10 @@ runTests([
[ ["onCompleted"] ]);
onRequest.addRules(
- [ {'conditions': [new RequestMatcher({'path_suffix': ".html"})],
+ [ {'conditions': [
+ new RequestMatcher({'path_suffix': ".html",
battre 2012/04/05 15:01:11 this should be pathSuffix. I will clean this up in
+ 'resourceType': ["main_frame"],
+ 'scheme': ["chrome-extension"]})],
'actions': [new CancelRequest()]}
],
function() {navigateAndWait(getURL("simpleLoad/a.html"));}

Powered by Google App Engine
This is Rietveld 408576698