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

Unified Diff: test/elemHide.js

Issue 29757584: Issue 6562 - Remove the unused provideFilterKeys parameter (Closed)
Patch Set: Removed comment Created April 23, 2018, 10:17 a.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
diff --git a/test/elemHide.js b/test/elemHide.js
index 92040ccaf7c6e8602e33bc087b95f4a957b68e62..462df3ac7e8bfced9a5433e5d73ab3fded257a39 100644
--- a/test/elemHide.js
+++ b/test/elemHide.js
@@ -47,18 +47,10 @@ function testResult(test, domain, expectedSelectors, criteria)
{
let normalizedExpectedSelectors = normalizeSelectors(expectedSelectors);
- // Test without filter keys
test.deepEqual(
normalizeSelectors(ElemHide.getSelectorsForDomain(domain, criteria)),
normalizedExpectedSelectors
);
-
- // With filter keys
- let [selectors, filterKeys] = ElemHide.getSelectorsForDomain(domain, criteria,
- true);
- test.deepEqual(filterKeys.map(k => ElemHide.getFilterByKey(k).selector),
- selectors);
- test.deepEqual(normalizeSelectors(selectors), normalizedExpectedSelectors);
}
exports.testGetSelectorsForDomain = function(test)
« 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