OLD | NEW |
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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 test.done(); | 384 test.done(); |
385 }; | 385 }; |
386 | 386 |
387 exports.testElemHideRulesWithBraces = function(test) | 387 exports.testElemHideRulesWithBraces = function(test) |
388 { | 388 { |
389 compareFilter( | 389 compareFilter( |
390 test, "###foo{color: red}", [ | 390 test, "###foo{color: red}", [ |
391 "type=elemhide", | 391 "type=elemhide", |
392 "text=###foo{color: red}", | 392 "text=###foo{color: red}", |
393 "selectorDomain=", | 393 "selectorDomain=", |
394 "selector=#foo\\x7B color: red\\x7D ", | 394 "selector=#foo\\7B color: red\\7D ", |
395 "domains=" | 395 "domains=" |
396 ] | 396 ] |
397 ); | 397 ); |
398 compareFilter( | 398 compareFilter( |
399 test, "foo.com#?#:-abp-properties(/margin: [3-4]{2}/)", [ | 399 test, "foo.com#?#:-abp-properties(/margin: [3-4]{2}/)", [ |
400 "type=elemhideemulation", | 400 "type=elemhideemulation", |
401 "text=foo.com#?#:-abp-properties(/margin: [3-4]{2}/)", | 401 "text=foo.com#?#:-abp-properties(/margin: [3-4]{2}/)", |
402 "selectorDomain=foo.com", | 402 "selectorDomain=foo.com", |
403 "selector=:-abp-properties(/margin: [3-4]\\x7B 2\\x7D /)", | 403 "selector=:-abp-properties(/margin: [3-4]\\7B 2\\7D /)", |
404 "domains=FOO.COM" | 404 "domains=FOO.COM" |
405 ] | 405 ] |
406 ); | 406 ); |
407 test.done(); | 407 test.done(); |
408 }; | 408 }; |
OLD | NEW |