From fde1d3399d0d51250c31315dca4cbc9044d36b9d Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 12 Jul 2018 19:57:01 +0200 Subject: AdBlockRule: parse some options --- test/urlfilter/adblocktest.cpp | 5 +++++ test/urlfilter/adblocktest.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'test/urlfilter') 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 -- cgit v1.2.1