| Left: | ||
| Right: |
| 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-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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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); | 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); | 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); | 133 testMatch(test, "abc$~websocket", "http://abc/adf", "WEBSOCKET", null, false, null, 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); | 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); | 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); | 136 testMatch(test, "abc$~webrtc", "http://abc/adf", "WEBRTC", null, false, null, false); |
| 137 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); |
| 138 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); |
| 139 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); |
| 140 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 ); |
| 141 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); |
| 142 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) ; |
| 143 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); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 356 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); |
| 357 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); |
| 358 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); |
| 359 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); |
| 360 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); |
| 361 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); |
| 362 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); |
| 363 | 363 |
| 364 test.done(); | 364 test.done(); |
| 365 }; | 365 }; |
| LEFT | RIGHT |