1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/*
This file is part of the KDE Frameworks
SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de>
SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include <QObject>
#include <QTest>
#include "cursorthemedata.h"
#include "cursorthemesettings.h"
class ModuleDataTest : public QObject
{
Q_OBJECT
private Q_SLOTS:
void testReadingDefaults();
};
void ModuleDataTest::testReadingDefaults()
{
Test::CursorThemeData data;
Test::CursorThemeSettings *settings = data.settings();
QVERIFY(settings);
QCOMPARE(settings->cursorTheme(), QStringLiteral("breeze_cursors"));
QCOMPARE(settings->cursorSize(), 24);
}
QTEST_MAIN(ModuleDataTest)
#include "module_data_test.moc"
|