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 adbc139d6db2fe6cbd7c3fa37e5e69d3cf673310..91fb9aeafcb8f1ec5b54b4f52b136cd8c598f889 100644 |
--- a/chrome/test/data/extensions/api_test/webrequest/test_declarative.js |
+++ b/chrome/test/data/extensions/api_test/webrequest/test_declarative.js |
@@ -252,6 +252,34 @@ runTests([ |
); |
}, |
+ function testRegexFilter() { |
+ ignoreUnexpected = true; |
+ expect( |
+ [ |
+ { label: "onErrorOccurred", |
+ event: "onErrorOccurred", |
+ details: { |
+ url: getURLHttpSimple(), |
+ fromCache: false, |
+ error: "net::ERR_BLOCKED_BY_CLIENT" |
+ } |
+ }, |
+ ], |
+ [ ["onErrorOccurred"] ]); |
+ onRequest.addRules( |
+ [ {'conditions': [ |
+ new RequestMatcher({ |
+ 'url': { |
+ 'urlMatches': 'simple[A-Z].*a\.html$', |
+ 'schemes': ["http"] |
+ }, |
+ })], |
+ 'actions': [new CancelRequest()]} |
+ ], |
+ function() {navigateAndWait(getURLHttpSimple());} |
+ ); |
+ }, |
+ |
function testSetRequestHeader() { |
ignoreUnexpected = true; |
expect(); // Used for initialization. |