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

Unified Diff: test/browser/elemHideEmulation.js

Issue 29728579: Issue 6437 - Apply :-abp-contains() to matching roots only (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Update tests Created April 19, 2018, 4:28 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/content/elemHideEmulation.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/browser/elemHideEmulation.js
===================================================================
--- a/test/browser/elemHideEmulation.js
+++ b/test/browser/elemHideEmulation.js
@@ -511,45 +511,45 @@
exports.testPseudoClassContainsText = function(test)
{
let expectations = {
parent: true,
middle: true,
inside: true,
sibling: false,
sibling2: true,
- toHide: false
+ toHide: true
};
runTestPseudoClassContains(
test, "#parent div:-abp-contains(to hide)", expectations);
};
exports.testPseudoClassContainsRegexp = function(test)
{
let expectations = {
parent: true,
middle: true,
inside: true,
sibling: false,
sibling2: true,
- toHide: false
+ toHide: true
};
runTestPseudoClassContains(
test, "#parent div:-abp-contains(/to\\shide/)", expectations);
};
exports.testPseudoClassContainsRegexpIFlag = function(test)
{
let expectations = {
parent: true,
middle: true,
inside: true,
sibling: false,
sibling2: true,
- toHide: false
+ toHide: true
};
runTestPseudoClassContains(
test, "#parent div:-abp-contains(/to\\sHide/i)", expectations);
};
exports.testPseudoClassContainsWildcardNoMatch = function(test)
{
let expectations = {
« no previous file with comments | « lib/content/elemHideEmulation.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld