File: module_data_test.cpp

package info (click to toggle)
kcmutils 5.103.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,864 kB
  • sloc: cpp: 4,996; sh: 21; makefile: 7
file content (31 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (2)
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"