LEFT | RIGHT |
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 { | 153 { |
154 testActive("example.com,~foo.example.com##foo", null, false, false); | 154 testActive("example.com,~foo.example.com##foo", null, false, false); |
155 testActive("example.com,~foo.example.com##foo", "com", false, true); | 155 testActive("example.com,~foo.example.com##foo", "com", false, true); |
156 testActive("example.com,~foo.example.com##foo", "example.com", true, true)
; | 156 testActive("example.com,~foo.example.com##foo", "example.com", true, true)
; |
157 testActive("example.com,~foo.example.com##foo", "example.com.", true, true
); | 157 testActive("example.com,~foo.example.com##foo", "example.com.", true, true
); |
158 testActive("example.com,~foo.example.com##foo", "foo.example.com", false,
false); | 158 testActive("example.com,~foo.example.com##foo", "foo.example.com", false,
false); |
159 testActive("example.com,~foo.example.com##foo", "mple.com", false, false); | 159 testActive("example.com,~foo.example.com##foo", "mple.com", false, false); |
160 }); | 160 }); |
161 }); | 161 }); |
162 | 162 |
163 describe("For Domain but not is TLD", () => | 163 describe("For Domain but not its TLD", () => |
164 { | 164 { |
165 it("Blocking Filters", () => | 165 it("Blocking Filters", () => |
166 { | 166 { |
167 testActive("foo$domain=example.com|~com", null, false, false); | 167 testActive("foo$domain=example.com|~com", null, false, false); |
168 testActive("foo$domain=example.com|~com", "com", false, true); | 168 testActive("foo$domain=example.com|~com", "com", false, true); |
169 testActive("foo$domain=example.com|~com", "example.com", true, true); | 169 testActive("foo$domain=example.com|~com", "example.com", true, true); |
170 testActive("foo$domain=example.com|~com", "example.com.", true, true); | 170 testActive("foo$domain=example.com|~com", "example.com.", true, true); |
171 testActive("foo$domain=example.com|~com", "foo.example.com", true, false); | 171 testActive("foo$domain=example.com|~com", "foo.example.com", true, false); |
172 testActive("foo$domain=example.com|~com", "mple.com", false, false); | 172 testActive("foo$domain=example.com|~com", "mple.com", false, false); |
173 }); | 173 }); |
(...skipping 25 matching lines...) Expand all Loading... |
199 { | 199 { |
200 testActive("nnnnnnn.nnn##foo", null, false, false); | 200 testActive("nnnnnnn.nnn##foo", null, false, false); |
201 testActive("nnnnnnn.nnn##foo", "com", false, false); | 201 testActive("nnnnnnn.nnn##foo", "com", false, false); |
202 testActive("nnnnnnn.nnn##foo", "example.com", false, false); | 202 testActive("nnnnnnn.nnn##foo", "example.com", false, false); |
203 testActive("nnnnnnn.nnn##foo", "example.com.", false, false); | 203 testActive("nnnnnnn.nnn##foo", "example.com.", false, false); |
204 testActive("nnnnnnn.nnn##foo", "foo.example.com", false, false); | 204 testActive("nnnnnnn.nnn##foo", "foo.example.com", false, false); |
205 testActive("nnnnnnn.nnn##foo", "mple.com", false, false); | 205 testActive("nnnnnnn.nnn##foo", "mple.com", false, false); |
206 }); | 206 }); |
207 }); | 207 }); |
208 }); | 208 }); |
LEFT | RIGHT |