| Left: | ||
| Right: | 
| 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-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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 testMatch(test, "abc$~stylesheet", "http://abc/adf", "STYLESHEET", null, false , null, false); | 121 testMatch(test, "abc$~stylesheet", "http://abc/adf", "STYLESHEET", null, false , null, false); | 
| 122 testMatch(test, "abc$object", "http://abc/adf", "IMAGE", null, false, null, fa lse); | 122 testMatch(test, "abc$object", "http://abc/adf", "IMAGE", null, false, null, fa lse); | 
| 123 testMatch(test, "abc$object", "http://abc/adf", "OBJECT", null, false, null, t rue); | 123 testMatch(test, "abc$object", "http://abc/adf", "OBJECT", null, false, null, t rue); | 
| 124 testMatch(test, "abc$~object", "http://abc/adf", "OBJECT", null, false, null, false); | 124 testMatch(test, "abc$~object", "http://abc/adf", "OBJECT", null, false, null, false); | 
| 125 testMatch(test, "abc$document", "http://abc/adf", "IMAGE", null, false, null, false); | 125 testMatch(test, "abc$document", "http://abc/adf", "IMAGE", null, false, null, false); | 
| 126 testMatch(test, "abc$document", "http://abc/adf", "DOCUMENT", null, false, nul l, true); | 126 testMatch(test, "abc$document", "http://abc/adf", "DOCUMENT", null, false, nul l, true); | 
| 127 testMatch(test, "abc$~document", "http://abc/adf", "DOCUMENT", null, false, nu ll, false); | 127 testMatch(test, "abc$~document", "http://abc/adf", "DOCUMENT", null, false, nu ll, false); | 
| 128 testMatch(test, "abc$subdocument", "http://abc/adf", "IMAGE", null, false, nul l, false); | 128 testMatch(test, "abc$subdocument", "http://abc/adf", "IMAGE", null, false, nul l, false); | 
| 129 testMatch(test, "abc$subdocument", "http://abc/adf", "SUBDOCUMENT", null, fals e, null, true); | 129 testMatch(test, "abc$subdocument", "http://abc/adf", "SUBDOCUMENT", null, fals e, null, true); | 
| 130 testMatch(test, "abc$~subdocument", "http://abc/adf", "SUBDOCUMENT", null, fal se, null, false); | 130 testMatch(test, "abc$~subdocument", "http://abc/adf", "SUBDOCUMENT", null, fal se, null, false); | 
| 131 testMatch(test, "abc$websocket", "http://abc/adf", "OBJECT", null, false, null , false); | |
| 132 testMatch(test, "abc$websocket", "http://abc/adf", "WEBSOCKET", null, false, n ull, true); | |
| 133 testMatch(test, "abc$~websocket", "http://abc/adf", "WEBSOCKT", null, false, n ull, false); | |
| 
 
sergei
2017/04/04 13:32:13
typo: I think E should not be missed here.
 
Wladimir Palant
2017/04/04 13:37:18
Why, the tests pass regardless :)
Fixed.
 
 | |
| 134 testMatch(test, "abc$webrtc", "http://abc/adf", "OBJECT", null, false, null, f alse); | |
| 135 testMatch(test, "abc$webrtc", "http://abc/adf", "WEBRTC", null, false, null, t rue); | |
| 136 testMatch(test, "abc$~webrtc", "http://abc/adf", "WEBRTC", null, false, null, false); | |
| 131 testMatch(test, "abc$background", "http://abc/adf", "OBJECT", null, false, nul l, false); | 137 testMatch(test, "abc$background", "http://abc/adf", "OBJECT", null, false, nul l, false); | 
| 132 testMatch(test, "abc$background", "http://abc/adf", "IMAGE", null, false, null , true); | 138 testMatch(test, "abc$background", "http://abc/adf", "IMAGE", null, false, null , true); | 
| 133 testMatch(test, "abc$~background", "http://abc/adf", "IMAGE", null, false, nul l, false); | 139 testMatch(test, "abc$~background", "http://abc/adf", "IMAGE", null, false, nul l, false); | 
| 134 testMatch(test, "abc$xbl", "http://abc/adf", "IMAGE", null, false, null, false ); | 140 testMatch(test, "abc$xbl", "http://abc/adf", "IMAGE", null, false, null, false ); | 
| 135 testMatch(test, "abc$xbl", "http://abc/adf", "XBL", null, false, null, true); | 141 testMatch(test, "abc$xbl", "http://abc/adf", "XBL", null, false, null, true); | 
| 136 testMatch(test, "abc$~xbl", "http://abc/adf", "XBL", null, false, null, false) ; | 142 testMatch(test, "abc$~xbl", "http://abc/adf", "XBL", null, false, null, false) ; | 
| 137 testMatch(test, "abc$ping", "http://abc/adf", "IMAGE", null, false, null, fals e); | 143 testMatch(test, "abc$ping", "http://abc/adf", "IMAGE", null, false, null, fals e); | 
| 138 testMatch(test, "abc$ping", "http://abc/adf", "PING", null, false, null, true) ; | 144 testMatch(test, "abc$ping", "http://abc/adf", "PING", null, false, null, true) ; | 
| 139 testMatch(test, "abc$~ping", "http://abc/adf", "PING", null, false, null, fals e); | 145 testMatch(test, "abc$~ping", "http://abc/adf", "PING", null, false, null, fals e); | 
| 140 testMatch(test, "abc$xmlhttprequest", "http://abc/adf", "IMAGE", null, false, null, false); | 146 testMatch(test, "abc$xmlhttprequest", "http://abc/adf", "IMAGE", null, false, null, false); | 
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 350 testMatch(test, "@@test$document,~image", "http://test/", "DOCUMENT", null, fa lse, null, true); | 356 testMatch(test, "@@test$document,~image", "http://test/", "DOCUMENT", null, fa lse, null, true); | 
| 351 testMatch(test, "@@test$document,domain=foo.com", "http://test/", "DOCUMENT", "foo.com", false, null, true); | 357 testMatch(test, "@@test$document,domain=foo.com", "http://test/", "DOCUMENT", "foo.com", false, null, true); | 
| 352 testMatch(test, "@@test$document,domain=foo.com", "http://test/", "DOCUMENT", "bar.com", false, null, false); | 358 testMatch(test, "@@test$document,domain=foo.com", "http://test/", "DOCUMENT", "bar.com", false, null, false); | 
| 353 testMatch(test, "@@test$document,domain=~foo.com", "http://test/", "DOCUMENT", "foo.com", false, null, false); | 359 testMatch(test, "@@test$document,domain=~foo.com", "http://test/", "DOCUMENT", "foo.com", false, null, false); | 
| 354 testMatch(test, "@@test$document,domain=~foo.com", "http://test/", "DOCUMENT", "bar.com", false, null, true); | 360 testMatch(test, "@@test$document,domain=~foo.com", "http://test/", "DOCUMENT", "bar.com", false, null, true); | 
| 355 testMatch(test, "@@test$document,sitekey=foo-publickey", "http://test/", "DOCU MENT", "foo.com", false, "foo-publickey", true); | 361 testMatch(test, "@@test$document,sitekey=foo-publickey", "http://test/", "DOCU MENT", "foo.com", false, "foo-publickey", true); | 
| 356 testMatch(test, "@@test$document,sitekey=foo-publickey", "http://test/", "DOCU MENT", "foo.com", false, null, false); | 362 testMatch(test, "@@test$document,sitekey=foo-publickey", "http://test/", "DOCU MENT", "foo.com", false, null, false); | 
| 357 | 363 | 
| 358 test.done(); | 364 test.done(); | 
| 359 }; | 365 }; | 
| OLD | NEW |