Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/test_parser.py

Issue 29808596: Issue 6748 - Implement rewrite support in python-abp (Closed) Base URL: https://hg.adblockplus.org/python-abp/
Patch Set: Created June 15, 2018, 10:50 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « abp/filters/parser.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_parser.py
===================================================================
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -90,6 +90,14 @@
('csp', 'c s p'),
],
},
+ '||content.server.com/files/*.php$rewrite=$1': {
+ 'selector': {'type': ST.URL_PATTERN,
+ 'value': '||content.server.com/files/*.php'},
+ 'action': FA.BLOCK,
+ 'options': [
+ ('rewrite', '$1'),
+ ],
+ },
# Element hiding filters and exceptions.
'##ddd': {
'selector': {'type': ST.CSS, 'value': 'ddd'},
« no previous file with comments | « abp/filters/parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld