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

Unified Diff: qunit/tests/filterValidation.js

Issue 29581937: Noissue - Use anonymous blocks instead of anonymous functions (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Oct. 18, 2017, 2:10 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 | « qunit/tests/cssEscaping.js ('k') | qunit/tests/prefs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: qunit/tests/filterValidation.js
===================================================================
--- a/qunit/tests/filterValidation.js
+++ b/qunit/tests/filterValidation.js
@@ -1,11 +1,10 @@
"use strict";
-(function()
{
const {parseFilter, parseFilters} = require("filterValidation");
const {BlockingFilter,
ElemHideFilter,
CommentFilter} = require("filterClasses");
module("Filter validation");
@@ -66,9 +65,9 @@
equal(result.filters[0].text, "||example.com^", "1st filter text matches");
ok(result.filters[1] instanceof ElemHideFilter, "2nd filter is elemhide");
equal(result.filters[1].text, "###foobar", "2nd filter text matches");
ok(result.filters[2] instanceof CommentFilter, "3rd filter is comment");
equal(result.filters[2].text, "! foo bar", "3rd filter text matches");
});
-}());
+}
« no previous file with comments | « qunit/tests/cssEscaping.js ('k') | qunit/tests/prefs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld