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

Unified Diff: test/elemHideEmulation.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Patch Set: Remove shared-node-browser env and Buffer global Created Feb. 23, 2017, 10:51 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 | « test/elemHide.js ('k') | test/filterClasses.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/elemHideEmulation.js
diff --git a/test/elemHideEmulation.js b/test/elemHideEmulation.js
index 342be885e12fb631956759f9d82dfce667340eeb..aef3da5d47355c58a4753d457a586f004582e453 100644
--- a/test/elemHideEmulation.js
+++ b/test/elemHideEmulation.js
@@ -17,7 +17,7 @@
"use strict";
-let {createSandbox} = require("./_common");
+const {createSandbox} = require("./_common");
let ElemHideEmulationFilter = null;
let ElemHideEmulation = null;
@@ -68,15 +68,15 @@ exports.testDomainRestrictions = function(test)
testSelectorMatches(
"Ignore selectors with exceptions",
["example.com##[-abp-properties='foo']",
- "example.com##[-abp-properties='bar']",
- "example.com#@#[-abp-properties='foo']"],
- "example.com",
+ "example.com##[-abp-properties='bar']",
+ "example.com#@#[-abp-properties='foo']"],
+ "example.com",
["example.com##[-abp-properties='bar']"]
);
testSelectorMatches(
"Ignore filters that include parent domain but exclude subdomain",
["~www.example.com,example.com##[-abp-properties='foo']"],
- "www.example.com",
+ "www.example.com",
[]
);
testSelectorMatches(
@@ -89,8 +89,8 @@ exports.testDomainRestrictions = function(test)
testSelectorMatches(
"Ignore filters for other subdomain",
["www.example.com##[-abp-properties='foo']",
- "other.example.com##[-abp-properties='foo']"],
- "other.example.com",
+ "other.example.com##[-abp-properties='foo']"],
+ "other.example.com",
["other.example.com##[-abp-properties='foo']"]
);
« no previous file with comments | « test/elemHide.js ('k') | test/filterClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld