Index: chrome/content/tests/matcher.js |
=================================================================== |
--- a/chrome/content/tests/matcher.js |
+++ b/chrome/content/tests/matcher.js |
@@ -162,35 +162,35 @@ |
checkMatch(["abc$sitekey=foo-publickey,domain=foo.com", "abc$sitekey=bar-publickey,domain=bar.com"], "http://abc/def", "IMAGE", "bar.com", false, "bar-publickey", "abc$sitekey=bar-publickey,domain=bar.com"); |
}); |
test("Result cache checks", function() |
{ |
let matcher = new CombinedMatcher(); |
matcher.add(Filter.fromText("abc$image")); |
matcher.add(Filter.fromText("abc$script")); |
- matcher.add(Filter.fromText("abc$~image,~script,~document")); |
+ matcher.add(Filter.fromText("abc$~image,~script,~media")); |
matcher.add(Filter.fromText("cba$third-party")); |
matcher.add(Filter.fromText("cba$~third-party,~script")); |
matcher.add(Filter.fromText("http://def$image")); |
matcher.add(Filter.fromText("http://def$script")); |
- matcher.add(Filter.fromText("http://def$~image,~script,~document")); |
+ matcher.add(Filter.fromText("http://def$~image,~script,~media")); |
matcher.add(Filter.fromText("http://fed$third-party")); |
matcher.add(Filter.fromText("http://fed$~third-party,~script")); |
cacheCheck(matcher, "http://abc", "IMAGE", null, false, "abc$image"); |
cacheCheck(matcher, "http://abc", "SCRIPT", null, false, "abc$script"); |
- cacheCheck(matcher, "http://abc", "OTHER", null, false, "abc$~image,~script,~document"); |
+ cacheCheck(matcher, "http://abc", "OTHER", null, false, "abc$~image,~script,~media"); |
cacheCheck(matcher, "http://cba", "IMAGE", null, false, "cba$~third-party,~script"); |
cacheCheck(matcher, "http://cba", "IMAGE", null, true, "cba$third-party"); |
cacheCheck(matcher, "http://def", "IMAGE", null, false, "http://def$image"); |
cacheCheck(matcher, "http://def", "SCRIPT", null, false, "http://def$script"); |
- cacheCheck(matcher, "http://def", "OTHER", null, false, "http://def$~image,~script,~document"); |
+ cacheCheck(matcher, "http://def", "OTHER", null, false, "http://def$~image,~script,~media"); |
cacheCheck(matcher, "http://fed", "IMAGE", null, false, "http://fed$~third-party,~script"); |
cacheCheck(matcher, "http://fed", "IMAGE", null, true, "http://fed$third-party"); |
- cacheCheck(matcher, "http://abc_cba", "DOCUMENT", null, false, "cba$~third-party,~script"); |
- cacheCheck(matcher, "http://abc_cba", "DOCUMENT", null, true, "cba$third-party"); |
+ cacheCheck(matcher, "http://abc_cba", "MEDIA", null, false, "cba$~third-party,~script"); |
+ cacheCheck(matcher, "http://abc_cba", "MEDIA", null, true, "cba$third-party"); |
cacheCheck(matcher, "http://abc_cba", "SCRIPT", null, false, "abc$script"); |
- cacheCheck(matcher, "http://def?http://fed", "DOCUMENT", null, false, "http://fed$~third-party,~script"); |
- cacheCheck(matcher, "http://def?http://fed", "DOCUMENT", null, true, "http://fed$third-party"); |
+ cacheCheck(matcher, "http://def?http://fed", "MEDIA", null, false, "http://fed$~third-party,~script"); |
+ cacheCheck(matcher, "http://def?http://fed", "MEDIA", null, true, "http://fed$third-party"); |
cacheCheck(matcher, "http://def?http://fed", "SCRIPT", null, false, "http://def$script"); |
}); |
})(); |