aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testpreferences.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-14 18:17:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-15 16:11:39 -0700
commitbac6456ee6b77231d23b20150d0f0cdfc5398784 (patch)
treee10f34287c4f2b4dc1b8c43594e69d5c0c52b196 /tests/testpreferences.cpp
parenta781d3a44ea136af4e166e9018644166a9755f54 (diff)
downloadsubsurface-bac6456ee6b77231d23b20150d0f0cdfc5398784.tar.gz
tests: remove testpreferences
remove the now empty testpreferences Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/testpreferences.cpp')
-rw-r--r--tests/testpreferences.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp
deleted file mode 100644
index 2171ba989..000000000
--- a/tests/testpreferences.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-#include "testpreferences.h"
-
-#include "core/subsurface-qt/SettingsObjectWrapper.h"
-
-#include <QDate>
-#include <QtTest>
-
-#define TEST(METHOD, VALUE) \
- QCOMPARE(METHOD, VALUE); \
- pref->sync(); \
- pref->load(); \
- QCOMPARE(METHOD, VALUE);
-
-void TestPreferences::initTestCase()
-{
- QCoreApplication::setOrganizationName("Subsurface");
- QCoreApplication::setOrganizationDomain("subsurface.hohndel.org");
- QCoreApplication::setApplicationName("SubsurfaceTestPreferences");
-}
-
-void TestPreferences::testPreferences()
-{
- auto pref = SettingsObjectWrapper::instance();
- pref->load();
-}
-
-QTEST_MAIN(TestPreferences)