| 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. |
| + ActiveFilter.prototype._domainsAccessCount = Infinity; |
| + |
| 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"); |