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

Side by Side Diff: tests/data/expected_blocks.json

Issue 30053555: Issue 7471 - Add an API for working with blocks of filters (Closed) Base URL: https://hg.adblockplus.org/python-abp
Patch Set: Adjust the API in response to review comments Created May 9, 2019, 4:22 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « abp/filters/rpy.py ('k') | tests/data/filterlist.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 [
2 {
3 "variables": {
4 "foo": "bar",
5 "baz": "some_tricky?variable=with&funny=chars#and-stuff"
6 },
7 "description": "Example block 1\nAnother comment",
8 "filters": [
9 {
10 "text": "||block.ing/filter$domain=foo.com|~bar.com",
11 "selector": {
12 "type": "url-pattern",
13 "value": "||block.ing/filter"
14 },
15 "action": "block",
16 "options": {
17 "domain": {
18 "foo.com": true,
19 "bar.com": false
20 }
21 },
22 "type": "Filter"
23 },
24 {
25 "text": "white.list.ing#@#hiding.filter",
26 "selector": {
27 "type": "css",
28 "value": "hiding.filter"
29 },
30 "action": "show",
31 "options": {
32 "domain": {
33 "white.list.ing": true
34 }
35 },
36 "type": "Filter"
37 }
38 ]
39 },
40 {
41 "description": "Another block",
42 "variables": {},
43 "filters": [
44 {
45 "text": "@@whateve.rs",
46 "selector": {
47 "type": "url-pattern",
48 "value": "whateve.rs"
49 },
50 "action": "allow",
51 "options": {},
52 "type": "Filter"
53 }
54 ]
55 }
56 ]
OLDNEW
« no previous file with comments | « abp/filters/rpy.py ('k') | tests/data/filterlist.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld