File indexing completed on 2024-12-15 04:54:35

0001 /*
0002   SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 */
0007 
0008 #include "tablockedwarningtest.h"
0009 #include "core/widgets/tablockedwarning.h"
0010 #include <QTest>
0011 QTEST_MAIN(TabLockedWarningTest)
0012 TabLockedWarningTest::TabLockedWarningTest(QObject *parent)
0013     : QObject(parent)
0014 {
0015 }
0016 
0017 void TabLockedWarningTest::shouldHaveDefaultValues()
0018 {
0019     MessageList::Core::TabLockedWarning w;
0020     QVERIFY(!w.isVisible());
0021     QVERIFY(w.wordWrap());
0022     QVERIFY(!w.isCloseButtonVisible());
0023     QCOMPARE(w.messageType(), KMessageWidget::Warning);
0024 }
0025 
0026 #include "moc_tablockedwarningtest.cpp"