Index: test/browser/elemHideEmulation.js |
=================================================================== |
--- a/test/browser/elemHideEmulation.js |
+++ b/test/browser/elemHideEmulation.js |
@@ -270,16 +270,31 @@ |
{ |
expectHidden(test, toHide); |
resolve(); |
}, 4000); |
}); |
}).catch(unexpectedError.bind(test)).then(() => test.done()); |
}; |
+exports.testPseudoClassWithPropBeforeSelector = function(test) |
+{ |
+ let parent = createElementWithStyle("{}"); |
+ let child = createElementWithStyle("{background-color: #000}", parent); |
+ insertStyleRule(`#${child.id}::before {content: "publicite"}`); |
+ |
+ applyElemHideEmulation( |
+ ["div:-abp-properties(content: \"publicite\")"] |
+ ).then(() => |
+ { |
+ expectHidden(test, child); |
+ expectVisible(test, parent); |
+ }).catch(unexpectedError.bind(test)).then(() => test.done()); |
+}; |
+ |
exports.testPseudoClassHasSelector = function(test) |
{ |
let toHide = createElementWithStyle("{}"); |
applyElemHideEmulation( |
["div:-abp-has(div)"] |
).then(() => |
{ |
expectVisible(test, toHide); |