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