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

Unified Diff: test/filterListener.js

Issue 29929561: Issue 7074 - Keep filter objects instead of text (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Oct. 28, 2018, 11:46 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/snippets.js ('k') | 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
@@ -85,23 +85,23 @@
let elemHideExceptions = sandboxedRequire("../lib/elemHideExceptions");
result.elemhideexception = [];
for (let exception of elemHideExceptions.knownExceptions)
result.elemhideexception.push(exception.text);
let elemHideEmulation = sandboxedRequire("../lib/elemHideEmulation");
result.elemhideemulation = [];
- for (let filterText of elemHideEmulation.filters)
- result.elemhideemulation.push(filterText);
+ for (let filter of elemHideEmulation.filters)
+ result.elemhideemulation.push(filter.text);
let snippets = sandboxedRequire("../lib/snippets");
result.snippets = [];
- for (let filterText of snippets.filters)
- result.snippets.push(filterText);
+ for (let filter of snippets.filters)
+ result.snippets.push(filter.text);
let types = ["blacklist", "whitelist", "elemhide", "elemhideexception",
"elemhideemulation", "snippets"];
for (let type of types)
{
if (!(type in expected))
expected[type] = [];
else
« no previous file with comments | « lib/snippets.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld