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

Unified Diff: test/filterListener.js

Issue 29745555: Issue 6559 - Fix tests for changeset 662384d3b0ad (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created April 7, 2018, 5:56 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/filterListener.js
===================================================================
--- a/test/filterListener.js
+++ b/test/filterListener.js
@@ -78,26 +78,25 @@
}
let elemHide = sandboxedRequire("../lib/elemHide");
result.elemhide = [];
for (let key in elemHide.filterByKey)
result.elemhide.push(elemHide.filterByKey[key].text);
result.elemhideexception = [];
- for (let selector in elemHide.exceptions)
+ for (let [, list] of elemHide.exceptions)
{
- let list = elemHide.exceptions[selector];
for (let exception of list)
result.elemhideexception.push(exception.text);
}
let elemHideEmulation = sandboxedRequire("../lib/elemHideEmulation");
result.elemhideemulation = [];
- for (let filterText in elemHideEmulation.filters)
+ for (let filterText of elemHideEmulation.filters)
result.elemhideemulation.push(filterText);
let types = ["blacklist", "whitelist", "elemhide", "elemhideexception",
"elemhideemulation"];
for (let type of types)
{
if (!(type in expected))
expected[type] = [];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld