Index: test/filterClasses.js |
=================================================================== |
--- a/test/filterClasses.js |
+++ b/test/filterClasses.js |
@@ -103,17 +103,20 @@ |
{ |
if (filter instanceof ElemHideFilter) |
result.push("type=elemhide"); |
else if (filter instanceof ElemHideException) |
result.push("type=elemhideexception"); |
else if (filter instanceof ElemHideEmulationFilter) |
result.push("type=elemhideemulation"); |
- result.push("selectorDomains=" + (filter.selectorDomains || "")); |
+ result.push("selectorDomains=" + |
+ [...filter.domains || []] |
+ .filter(([domain, isIncluded]) => isIncluded) |
+ .map(([domain]) => domain.toLowerCase())); |
result.push("selector=" + filter.selector); |
} |
} |
return result; |
} |
function addDefaults(expected) |
{ |