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

Unified Diff: test/elemHide.js

Issue 29893628: Issue 6957 - Skip selector lookup for unknown domains (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Rebase Created Sept. 28, 2018, 6 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/elemHide.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/elemHide.js
===================================================================
--- a/test/elemHide.js
+++ b/test/elemHide.js
@@ -53,17 +53,17 @@
});
}
function testResult(test, domain, expectedSelectors, specificOnly)
{
let normalizedExpectedSelectors = normalizeSelectors(expectedSelectors);
let {code, selectors} =
- ElemHide.generateStyleSheetForDomain(domain, specificOnly);
+ ElemHide.generateStyleSheetForDomain(domain, specificOnly, true);
test.deepEqual(normalizeSelectors(selectors), normalizedExpectedSelectors);
// Make sure each expected selector is in the actual CSS code.
for (let selector of normalizedExpectedSelectors)
{
test.ok(code.includes(selector + ", ") ||
code.includes(selector + " {display: none !important;}\n"));
« no previous file with comments | « lib/elemHide.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld