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

Delta Between Two Patch Sets: 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
Left Patch Set: Refine the API and add documentation Created May 9, 2019, 11:13 a.m.
Right 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « abp/filters/rpy.py ('k') | tests/data/filterlist.txt » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 [ 1 [
2 { 2 {
3 "foo": "bar", 3 "variables": {
4 "baz": "some_tricky?variable=with&funny=chars#and-stuff", 4 "foo": "bar",
5 "baz": "some_tricky?variable=with&funny=chars#and-stuff"
6 },
5 "description": "Example block 1\nAnother comment", 7 "description": "Example block 1\nAnother comment",
6 "filters": [ 8 "filters": [
7 { 9 {
8 "text": "||block.ing/filter$domain=foo.com|~bar.com", 10 "text": "||block.ing/filter$domain=foo.com|~bar.com",
9 "selector": { 11 "selector": {
10 "type": "url-pattern", 12 "type": "url-pattern",
11 "value": "||block.ing/filter" 13 "value": "||block.ing/filter"
12 }, 14 },
13 "action": "block", 15 "action": "block",
14 "options": { 16 "options": {
(...skipping 15 matching lines...) Expand all
30 "domain": { 32 "domain": {
31 "white.list.ing": true 33 "white.list.ing": true
32 } 34 }
33 }, 35 },
34 "type": "Filter" 36 "type": "Filter"
35 } 37 }
36 ] 38 ]
37 }, 39 },
38 { 40 {
39 "description": "Another block", 41 "description": "Another block",
42 "variables": {},
40 "filters": [ 43 "filters": [
41 { 44 {
42 "text": "@@whateve.rs", 45 "text": "@@whateve.rs",
43 "selector": { 46 "selector": {
44 "type": "url-pattern", 47 "type": "url-pattern",
45 "value": "whateve.rs" 48 "value": "whateve.rs"
46 }, 49 },
47 "action": "allow", 50 "action": "allow",
48 "options": {}, 51 "options": {},
49 "type": "Filter" 52 "type": "Filter"
50 } 53 }
51 ] 54 ]
52 } 55 }
53 ] 56 ]
LEFTRIGHT

Powered by Google App Engine
This is Rietveld