Index: test/filterClasses.js |
=================================================================== |
--- a/test/filterClasses.js |
+++ b/test/filterClasses.js |
@@ -600,16 +600,19 @@ |
"http://example.com/?" |
); |
test.done(); |
}; |
exports.testDomainMapDeduplication = function(test) |
{ |
+ // Make sure the generated domain map is cached on first access. |
Manish Jethani
2018/10/15 15:36:59
We need to set this in order to test our deduplica
|
+ ActiveFilter.prototype._domainsAccessCacheThreshold = 0; |
+ |
let filter1 = Filter.fromText("example.com##.foo"); |
let filter2 = Filter.fromText("example.com##.bar"); |
// This compares the references to make sure that both refer to the same |
// object (#6815). |
test.equal(filter1.domains, filter2.domains); |
let filter3 = Filter.fromText("www.example.com##.bar"); |