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

Side by Side Diff: test/abp2blocklist.js

Issue 29426594: Issue 3673 - Merge closely matching rules (Closed) Base URL: https://hg.adblockplus.org/abp2blocklist
Patch Set: Created May 1, 2017, 7:37 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 | « lib/abp2blocklist.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 "7$popup", "8$object", "9$object_subrequest", "10$xmlhttprequest", 180 "7$popup", "8$object", "9$object_subrequest", "10$xmlhttprequest",
181 "11$ping", "12$subdocument", "13$other", "14$IMAGE", 181 "11$ping", "12$subdocument", "13$other", "14$IMAGE",
182 "15$script,PING,Popup", "16$~image"], 182 "15$script,PING,Popup", "16$~image"],
183 [["image", "style-sheet", "script", "font", "media", "raw", "document" ], 183 [["image", "style-sheet", "script", "font", "media", "raw", "document" ],
184 ["image"], 184 ["image"],
185 ["style-sheet"], 185 ["style-sheet"],
186 ["script"], 186 ["script"],
187 ["font"], 187 ["font"],
188 ["media"], 188 ["media"],
189 ["popup"], 189 ["popup"],
190 ["media"],
191 ["raw"],
192 ["raw"], 190 ["raw"],
193 ["raw"], 191 ["raw"],
194 ["document"], 192 ["document"],
195 ["raw"],
196 ["image"], 193 ["image"],
197 ["script", "popup", "raw" ], 194 ["script", "popup", "raw" ],
198 ["style-sheet", "script", "font", "media", "raw", "document"]], 195 ["style-sheet", "script", "font", "media", "raw", "document"]],
199 rules => rules.map(rule => rule.trigger["resource-type"]) 196 rules => rules.map(rule => rule.trigger["resource-type"])
200 ); 197 );
201 198
202 test.done(); 199 test.done();
203 }, 200 },
204 201
205 testUnsupportedfilters: function(test) 202 testUnsupportedfilters: function(test)
(...skipping 20 matching lines...) Expand all
226 testUnicode: function(test) 223 testUnicode: function(test)
227 { 224 {
228 testRules(test, ["$domain=🐈.cat"], ["xn--zn8h.cat", "www.xn--zn8h.cat"], 225 testRules(test, ["$domain=🐈.cat"], ["xn--zn8h.cat", "www.xn--zn8h.cat"],
229 rules => rules[0]["trigger"]["if-domain"]); 226 rules => rules[0]["trigger"]["if-domain"]);
230 testRules(test, ["🐈$domain=🐈.cat"], []); 227 testRules(test, ["🐈$domain=🐈.cat"], []);
231 testRules(test, ["###🐈"], []); 228 testRules(test, ["###🐈"], []);
232 229
233 test.done(); 230 test.done();
234 } 231 }
235 }; 232 };
OLDNEW
« no previous file with comments | « lib/abp2blocklist.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld