File indexing completed on 2024-12-22 04:46:02
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #include "offlinewidgettest.h" 0007 #include "offlinewidget/offlinewidget.h" 0008 #include <QTest> 0009 0010 QTEST_MAIN(OffLineWidgetTest) 0011 0012 OffLineWidgetTest::OffLineWidgetTest(QObject *parent) 0013 : QObject{parent} 0014 { 0015 } 0016 0017 void OffLineWidgetTest::shouldHaveDefaultValues() 0018 { 0019 OffLineWidget w; 0020 w.show(); 0021 QVERIFY(!w.isCloseButtonVisible()); 0022 QCOMPARE(w.messageType(), KMessageWidget::Information); 0023 QVERIFY(!w.text().isEmpty()); 0024 } 0025 0026 #include "moc_offlinewidgettest.cpp"