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: Rebased. Created Feb. 28, 2017, 3:55 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
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",
Wladimir Palant 2017/03/02 14:07:07 The indentation is wrong here. Should be: [ "ex
kzar 2017/03/08 12:33:55 Done.
["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",
Wladimir Palant 2017/03/02 14:07:07 The added indentation is wrong here, "www.example.
kzar 2017/03/08 12:33:54 Done.
[]
);
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",
Wladimir Palant 2017/03/02 14:07:07 Indentation is wrong here. Should be: [ "www.ex
kzar 2017/03/08 12:33:55 Done.
["other.example.com##[-abp-properties='foo']"]
);

Powered by Google App Engine
This is Rietveld