diff options
Diffstat (limited to 'tests/testpreferences.cpp')
-rw-r--r-- | tests/testpreferences.cpp | 28 |
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) |