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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 "Keyword of filter " + filter.text); | 77 "Keyword of filter " + filter.text); |
78 filters.push(filter.text); | 78 filters.push(filter.text); |
79 } | 79 } |
80 } | 80 } |
81 } | 81 } |
82 result[type] = filters; | 82 result[type] = filters; |
83 } | 83 } |
84 | 84 |
85 let elemHide = sandboxedRequire("../lib/elemHide"); | 85 let elemHide = sandboxedRequire("../lib/elemHide"); |
86 result.elemhide = []; | 86 result.elemhide = []; |
87 for (let filter of elemHide.knownFilters) | 87 for (let filterText of elemHide.knownFilters) |
88 result.elemhide.push(filter.text); | 88 result.elemhide.push(filterText); |
89 | 89 |
90 let elemHideExceptions = sandboxedRequire("../lib/elemHideExceptions"); | 90 let elemHideExceptions = sandboxedRequire("../lib/elemHideExceptions"); |
91 result.elemhideexception = []; | 91 result.elemhideexception = []; |
92 for (let exception of elemHideExceptions.knownExceptions) | 92 for (let exception of elemHideExceptions.knownExceptions) |
93 result.elemhideexception.push(exception.text); | 93 result.elemhideexception.push(exception.text); |
94 | 94 |
95 let elemHideEmulation = sandboxedRequire("../lib/elemHideEmulation"); | 95 let elemHideEmulation = sandboxedRequire("../lib/elemHideEmulation"); |
96 result.elemhideemulation = []; | 96 result.elemhideemulation = []; |
97 for (let filter of elemHideEmulation.filters) | 97 for (let filter of elemHideEmulation.filters) |
98 result.elemhideemulation.push(filter.text); | 98 result.elemhideemulation.push(filter.text); |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 checkKnownFilters(test, "add special subscription with filter2", {snippets: [f
ilter1.text, filter2.text]}); | 360 checkKnownFilters(test, "add special subscription with filter2", {snippets: [f
ilter1.text, filter2.text]}); |
361 | 361 |
362 let subscription4 = Subscription.fromURL("https://easylist-downloads.adblockpl
us.org/abp-filters-anti-cv.txt"); | 362 let subscription4 = Subscription.fromURL("https://easylist-downloads.adblockpl
us.org/abp-filters-anti-cv.txt"); |
363 subscription4.filters = [filter3]; | 363 subscription4.filters = [filter3]; |
364 | 364 |
365 filterStorage.addSubscription(subscription4); | 365 filterStorage.addSubscription(subscription4); |
366 checkKnownFilters(test, "add ABP anti-circumvention subscription with filter3"
, {snippets: [filter1.text, filter2.text, filter3.text]}); | 366 checkKnownFilters(test, "add ABP anti-circumvention subscription with filter3"
, {snippets: [filter1.text, filter2.text, filter3.text]}); |
367 | 367 |
368 test.done(); | 368 test.done(); |
369 }; | 369 }; |
OLD | NEW |