Index: test/elemHideEmulation.js |
=================================================================== |
--- a/test/elemHideEmulation.js |
+++ b/test/elemHideEmulation.js |
@@ -16,51 +16,51 @@ |
*/ |
"use strict"; |
const {createSandbox} = require("./_common"); |
let ElemHideEmulationFilter = null; |
let ElemHideEmulation = null; |
-let ElemHide = null; |
+let ElemHideExceptions = null; |
let Filter = null; |
exports.setUp = function(callback) |
{ |
let sandboxedRequire = createSandbox(); |
( |
{Filter, |
ElemHideEmulationFilter} = sandboxedRequire("../lib/filterClasses"), |
{ElemHideEmulation} = sandboxedRequire("../lib/elemHideEmulation"), |
- {ElemHide} = sandboxedRequire("../lib/elemHide") |
+ {ElemHideExceptions} = sandboxedRequire("../lib/elemHideExceptions") |
); |
callback(); |
}; |
exports.testDomainRestrictions = function(test) |
{ |
function testSelectorMatches(description, filters, domain, expectedMatches) |
{ |
for (let filter of filters) |
{ |
filter = Filter.fromText(filter); |
if (filter instanceof ElemHideEmulationFilter) |
ElemHideEmulation.add(filter); |
else |
- ElemHide.add(filter); |
+ ElemHideExceptions.add(filter); |
} |
let matches = ElemHideEmulation.getRulesForDomain(domain) |
.map(filter => filter.text); |
test.deepEqual(matches.sort(), expectedMatches.sort(), description); |
ElemHideEmulation.clear(); |
- ElemHide.clear(); |
+ ElemHideExceptions.clear(); |
} |
testSelectorMatches( |
"Ignore generic filters", |
[ |
"#?#:-abp-properties(foo)", "example.com#?#:-abp-properties(foo)", |
"~example.com#?#:-abp-properties(foo)" |
], |