| Index: test/elemHideEmulation.js |
| =================================================================== |
| --- a/test/elemHideEmulation.js |
| +++ b/test/elemHideEmulation.js |
| @@ -163,32 +163,16 @@ |
| 0, selectors => |
| test.equal(selectors.selectorCount, 2))( |
| elemHide.getSelectorsForDomain("example.com", 0)); |
| })(ElemHide.create()); |
| test.done(); |
| }; |
| -exports.testSyntaxConversion = function(test) |
| -{ |
| - function checkConvertedFilter(old, converted) |
| - { |
| - withNAD( |
| - 0, filter => test.equal(filter.text, converted))(Filter.fromText(old)); |
| - } |
| - |
| - checkConvertedFilter("example.com##foo[-abp-properties='something']bar", "example.com#?#foo:-abp-properties(something)bar"); |
| - checkConvertedFilter("example.com#@#foo[-abp-properties='something']bar", "example.com#@#foo:-abp-properties(something)bar"); |
| - checkConvertedFilter("example.com##[-abp-properties=\"something\"]", "example.com#?#:-abp-properties(something)"); |
| - checkConvertedFilter("example.com##[-abp-properties='(something)']", "example.com#?#:-abp-properties((something))"); |
| - |
| - test.done(); |
| -}; |
| - |
| exports.testDomainRestrictions = function(test) |
| { |
| function testSelectorMatches(description, filters, domain, expectedMatches) |
| { |
| withNAD([0, 1], (elemHide, elemHideEmulation) => |
| { |
| let addFilter = withNAD(0, filter => |
| { |