From 3323b83af3bc0cd4feff0e0463718e77d4eabef7 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 20 Dec 2017 12:53:40 +0100 Subject: Can now open links in new tab --- test/bookmarks.xbel | 1 - test/config/config.qrc | 5 ----- test/config/main.cpp | 28 ---------------------------- test/config/poi.cfg | 1 - test/filter.json | 15 --------------- test/poi.conf | 1 - test/test.qbs | 38 -------------------------------------- 7 files changed, 89 deletions(-) delete mode 120000 test/bookmarks.xbel delete mode 100644 test/config/config.qrc delete mode 100644 test/config/main.cpp delete mode 100644 test/config/poi.cfg delete mode 100644 test/filter.json delete mode 120000 test/poi.conf delete mode 100644 test/test.qbs (limited to 'test') diff --git a/test/bookmarks.xbel b/test/bookmarks.xbel deleted file mode 120000 index 8644c64..0000000 --- a/test/bookmarks.xbel +++ /dev/null @@ -1 +0,0 @@ -../data/bookmarks.xbel \ No newline at end of file diff --git a/test/config/config.qrc b/test/config/config.qrc deleted file mode 100644 index ab60a1b..0000000 --- a/test/config/config.qrc +++ /dev/null @@ -1,5 +0,0 @@ - - - poi.cfg - - diff --git a/test/config/main.cpp b/test/config/main.cpp deleted file mode 100644 index 7be84d0..0000000 --- a/test/config/main.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of smolbote. It's copyrighted by the contributors recorded - * in the version control history of the file, available from its original - * location: git://neueland.iserlohn-fortress.net/smolbote.git - * - * SPDX-License-Identifier: GPL-3.0 - */ - -#include -#include "settings/configuration.h" - -#include - -int main(int argc, char** argv) -{ - Configuration *settings = new Configuration(); - - // Use QFile so we can easily access qrc: - QFile defaultCfg(":/poi.cfg"); - defaultCfg.open(QIODevice::ReadOnly); - - std::cout << "UserCfg: " << (settings->readUserConfiguration("file.cfg") ? "true" : "false") << std::endl; - std::cout << "DefaultCfg: " << (settings->readDefaultConfiguration(defaultCfg.readAll().toStdString()) ? "true" : "false") << std::endl; - - std::cout << "test = " << settings->value("test").value_or("unknown") << std::endl; - - return 0; -} diff --git a/test/config/poi.cfg b/test/config/poi.cfg deleted file mode 100644 index 5fd6f29..0000000 --- a/test/config/poi.cfg +++ /dev/null @@ -1 +0,0 @@ -test = "value"; diff --git a/test/filter.json b/test/filter.json deleted file mode 100644 index d52efe7..0000000 --- a/test/filter.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "Poi Test Filter List", - "url": "https://neueland.iserlohn-fortress.net/filter.json", - "rules": { - "": { - "google-analytics.com": true, - "js-agent.newrelic.com": true, - "js": true - }, - "duckduckgo.com": { - "css": false, - "js": false - } - } -} diff --git a/test/poi.conf b/test/poi.conf deleted file mode 120000 index a713f73..0000000 --- a/test/poi.conf +++ /dev/null @@ -1 +0,0 @@ -../data/poi.toml \ No newline at end of file diff --git a/test/test.qbs b/test/test.qbs deleted file mode 100644 index 3088a90..0000000 --- a/test/test.qbs +++ /dev/null @@ -1,38 +0,0 @@ -import qbs -import qbs.Probes - -Project { - name: "Tests" - - Probes.PkgConfigProbe { - id: libconfig - name: "libconfig++" - } - - // References aren't needed because test.qbs is the last reference in smolbote.qbs -// references: [ -// "../lib/settings/settings.qbs" -// ] - - CppApplication { - name: "configtest" - - cpp.includePaths: ['../lib'] - cpp.cxxLanguageVersion: "c++17" - cpp.cxxFlags: libconfig.cflags - cpp.linkerFlags: libconfig.libs - - Depends { - name: "Qt" - versionAtLeast: "5.9.0" - submodules: ["core"] - } - Depends { name: "settings" } - - files: [ - "config/config.qrc", - "config/main.cpp", - ] - - } -} -- cgit v1.2.1