aboutsummaryrefslogtreecommitdiff
path: root/test/urlfilter
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-07-12 19:57:01 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-07-12 19:57:01 +0200
commitfde1d3399d0d51250c31315dca4cbc9044d36b9d (patch)
tree19e1afef9e8803f19f4f446a68303c5870e238f2 /test/urlfilter
parentWebView: add Open in new tab and Save actions for images (diff)
downloadsmolbote-fde1d3399d0d51250c31315dca4cbc9044d36b9d.tar.xz
AdBlockRule: parse some options
Diffstat (limited to 'test/urlfilter')
-rw-r--r--test/urlfilter/adblocktest.cpp5
-rw-r--r--test/urlfilter/adblocktest.h2
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