mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: remove testpreferences
remove the now empty testpreferences Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
a781d3a44e
commit
bac6456ee6
3 changed files with 0 additions and 45 deletions
|
@ -96,7 +96,6 @@ TEST(TestPlan testplan.cpp)
|
||||||
TEST(TestDiveSiteDuplication testdivesiteduplication.cpp)
|
TEST(TestDiveSiteDuplication testdivesiteduplication.cpp)
|
||||||
TEST(TestRenumber testrenumber.cpp)
|
TEST(TestRenumber testrenumber.cpp)
|
||||||
TEST(TestGitStorage testgitstorage.cpp)
|
TEST(TestGitStorage testgitstorage.cpp)
|
||||||
TEST(TestPreferences testpreferences.cpp)
|
|
||||||
TEST(TestPicture testpicture.cpp)
|
TEST(TestPicture testpicture.cpp)
|
||||||
TEST(TestMerge testmerge.cpp)
|
TEST(TestMerge testmerge.cpp)
|
||||||
TEST(TestTagList testtaglist.cpp)
|
TEST(TestTagList testtaglist.cpp)
|
||||||
|
@ -128,7 +127,6 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
|
||||||
TestGitStorage
|
TestGitStorage
|
||||||
TestPlan
|
TestPlan
|
||||||
TestDiveSiteDuplication
|
TestDiveSiteDuplication
|
||||||
TestPreferences
|
|
||||||
TestRenumber
|
TestRenumber
|
||||||
TestPicture
|
TestPicture
|
||||||
TestMerge
|
TestMerge
|
||||||
|
|
|
@ -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)
|
|
|
@ -1,15 +0,0 @@
|
||||||
// SPDX-License-Identifier: GPL-2.0
|
|
||||||
#ifndef TESTPREFERENCES_H
|
|
||||||
#define TESTPREFERENCES_H
|
|
||||||
|
|
||||||
#include <QTest>
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
class TestPreferences : public QObject {
|
|
||||||
Q_OBJECT
|
|
||||||
private slots:
|
|
||||||
void initTestCase();
|
|
||||||
void testPreferences();
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // TESTPREFERENCES_H
|
|
Loading…
Add table
Add a link
Reference in a new issue