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 +++++ 1 file changed, 5 insertions(+) (limited to 'test/urlfilter/adblocktest.cpp') 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) -- cgit v1.2.1