LEFT | RIGHT |
(no file at all) | |
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 ).then(() => | 214 ).then(() => |
215 { | 215 { |
216 expectHidden(test, toHide); | 216 expectHidden(test, toHide); |
217 }).catch(unexpectedError.bind(test)).then(() => test.done()); | 217 }).catch(unexpectedError.bind(test)).then(() => test.done()); |
218 }; | 218 }; |
219 | 219 |
220 exports.testPropertySelectorWithEscapedBrace = function(test) | 220 exports.testPropertySelectorWithEscapedBrace = function(test) |
221 { | 221 { |
222 let toHide = createElementWithStyle("{background-color: #000}"); | 222 let toHide = createElementWithStyle("{background-color: #000}"); |
223 applyElemHideEmulation( | 223 applyElemHideEmulation( |
224 [":-abp-properties(/background.\\x7B 0,6\\x7D : rgb\\(0, 0, 0\\)/)"] | 224 [":-abp-properties(/background.\\7B 0,6\\7D : rgb\\(0, 0, 0\\)/)"] |
225 ).then(() => | 225 ).then(() => |
226 { | 226 { |
227 expectHidden(test, toHide); | 227 expectHidden(test, toHide); |
228 }).catch(unexpectedError.bind(test)).then(() => test.done()); | 228 }).catch(unexpectedError.bind(test)).then(() => test.done()); |
229 }; | 229 }; |
230 | 230 |
231 exports.testPropertySelectorWithImproperlyEscapedBrace = function(test) | 231 exports.testPropertySelectorWithImproperlyEscapedBrace = function(test) |
232 { | 232 { |
233 let toHide = createElementWithStyle("{background-color: #000}"); | 233 let toHide = createElementWithStyle("{background-color: #000}"); |
234 applyElemHideEmulation( | 234 applyElemHideEmulation( |
235 [":-abp-properties(/background.\\x7B0,6\\x7D: rgb\\(0, 0, 0\\)/)"] | 235 [":-abp-properties(/background.\\7B0,6\\7D: rgb\\(0, 0, 0\\)/)"] |
236 ).then(() => | 236 ).then(() => |
237 { | 237 { |
238 expectVisible(test, toHide); | 238 expectVisible(test, toHide); |
239 }).catch(unexpectedError.bind(test)).then(() => test.done()); | 239 }).catch(unexpectedError.bind(test)).then(() => test.done()); |
240 }; | 240 }; |
241 | 241 |
242 exports.testDynamicallyChangedProperty = function(test) | 242 exports.testDynamicallyChangedProperty = function(test) |
243 { | 243 { |
244 let toHide = createElementWithStyle("{}"); | 244 let toHide = createElementWithStyle("{}"); |
245 applyElemHideEmulation( | 245 applyElemHideEmulation( |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 expectVisible(test, child2); | 580 expectVisible(test, child2); |
581 return timeout(REFRESH_INTERVAL); | 581 return timeout(REFRESH_INTERVAL); |
582 }).then(() => | 582 }).then(() => |
583 { | 583 { |
584 expectHidden(test, parent); | 584 expectHidden(test, parent); |
585 expectVisible(test, child); | 585 expectVisible(test, child); |
586 expectHidden(test, sibling); | 586 expectHidden(test, sibling); |
587 expectVisible(test, child2); | 587 expectVisible(test, child2); |
588 }).catch(unexpectedError.bind(test)).then(() => test.done()); | 588 }).catch(unexpectedError.bind(test)).then(() => test.done()); |
589 }; | 589 }; |
LEFT | RIGHT |