diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/urlfilter/adblocktest.cpp | 5 | ||||
| -rw-r--r-- | test/urlfilter/adblocktest.h | 2 | 
2 files changed, 7 insertions, 0 deletions
diff --git a/test/urlfilter/adblocktest.cpp b/test/urlfilter/adblocktest.cpp index d1060f1..58bafc5 100644 --- a/test/urlfilter/adblocktest.cpp +++ b/test/urlfilter/adblocktest.cpp @@ -37,4 +37,9 @@ void AdBlockTest::blockExactAddress()      QCOMPARE(rule.shouldBlock(QUrl("http://example.info/redirect/http://example.com/")), false);  } +void AdBlockTest::parseOptions() +{ +    AdBlockRule rule("annoying_banners/ads$image,script"); +} +  QTEST_GUILESS_MAIN(AdBlockTest) diff --git a/test/urlfilter/adblocktest.h b/test/urlfilter/adblocktest.h index a7b9f12..00ad118 100644 --- a/test/urlfilter/adblocktest.h +++ b/test/urlfilter/adblocktest.h @@ -10,6 +10,8 @@ private slots:      void blockByAddressPart();      void blockByDomain();      void blockExactAddress(); + +    void parseOptions();  };  #endif // ADBLOCKTEST_H  | 
