Index: test/filterClasses.js |
=================================================================== |
--- a/test/filterClasses.js |
+++ b/test/filterClasses.js |
@@ -230,27 +230,29 @@ |
test.done(); |
}; |
exports.testSerialize = function(test) |
{ |
// Comment |
let filter = Filter.fromText("! serialize"); |
test.equal(filter.serialize(), "[Filter]\ntext=! serialize\n"); |
+ test.equal(filter.collapse, undefined); |
filter.delete(); |
// Blocking filter |
filter = Filter.fromText("serialize"); |
test.equal(filter.serialize(), "[Filter]\ntext=serialize\n"); |
filter.disabled = true; |
test.equal(filter.serialize(), "[Filter]\ntext=serialize\ndisabled=true\n"); |
filter.disabled = false; |
filter.hitCount = 10; |
filter.lastHit = 12; |
test.equal(filter.serialize(), "[Filter]\ntext=serialize\nhitCount=10\nlastHit=12\n"); |
+ test.ok(filter.collapse); |
filter.delete(); |
// Invalid filter |
filter = Filter.fromText("serialize$foobar"); |
test.equal(filter.serialize(), "[Filter]\ntext=serialize$foobar\n"); |
filter.delete(); |
// Element hiding filter |