File indexing completed on 2024-04-21 14:53:49
0001 /* 0002 This file is part of the KDE Frameworks 0003 SPDX-FileCopyrightText: 2022 Nicolas Fella <nicolas.fella@gmx.de> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #include <KCMultiDialog> 0009 0010 #include <QObject> 0011 #include <QTest> 0012 0013 class KCMultiDialogTest : public QObject 0014 { 0015 Q_OBJECT 0016 private Q_SLOTS: 0017 void testClear(); 0018 }; 0019 0020 void KCMultiDialogTest::testClear() 0021 { 0022 KCMultiDialog dialog; 0023 dialog.addModule(KPluginMetaData(QStringLiteral("fakekcm"))); 0024 // Just verify that it doesn't crash 0025 dialog.clear(); 0026 } 0027 0028 QTEST_MAIN(KCMultiDialogTest) 0029 #include "kcmultidialogtest.moc"