File indexing completed on 2024-05-19 07:41:52

0001 /*
0002     SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 #include <QObject>
0007 #include <QTest>
0008 
0009 #include "cursorthemedata.h"
0010 #include "cursorthemesettings.h"
0011 
0012 class ModuleDataTest : public QObject
0013 {
0014     Q_OBJECT
0015 private Q_SLOTS:
0016     void testReadingDefaults();
0017 };
0018 
0019 void ModuleDataTest::testReadingDefaults()
0020 {
0021     Test::CursorThemeData data;
0022     Test::CursorThemeSettings *settings = data.settings();
0023     QVERIFY(settings);
0024     QCOMPARE(settings->cursorTheme(), QStringLiteral("breeze_cursors"));
0025     QCOMPARE(settings->cursorSize(), 24);
0026 }
0027 
0028 QTEST_MAIN(ModuleDataTest)
0029 
0030 #include "module_data_test.moc"