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

Delta Between Two Patch Sets: test/domainRestrictions.js

Issue 30025555: Issue 6820 - Move tests to mocha (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Left Patch Set: Created March 7, 2019, 1:14 p.m.
Right Patch Set: Rebased Created April 10, 2019, 6:33 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 | « test/caching.js ('k') | test/elemHide.js » ('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 * 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
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
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 });
LEFTRIGHT

Powered by Google App Engine
This is Rietveld