File: kcmultidialogtest.cpp

package info (click to toggle)
kcmutils 5.116.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,860 kB
  • sloc: cpp: 5,016; sh: 21; makefile: 7
file content (29 lines) | stat: -rw-r--r-- 633 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
/*
    This file is part of the KDE Frameworks
    SPDX-FileCopyrightText: 2022 Nicolas Fella <nicolas.fella@gmx.de>

    SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/

#include <KCMultiDialog>

#include <QObject>
#include <QTest>

class KCMultiDialogTest : public QObject
{
    Q_OBJECT
private Q_SLOTS:
    void testClear();
};

void KCMultiDialogTest::testClear()
{
    KCMultiDialog dialog;
    dialog.addModule(KPluginMetaData(QStringLiteral("fakekcm")));
    // Just verify that it doesn't crash
    dialog.clear();
}

QTEST_MAIN(KCMultiDialogTest)
#include "kcmultidialogtest.moc"