File indexing completed on 2024-06-09 04:59:21
0001 /* 0002 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "teamnamelabeltest.h" 0008 #include "room/teamnamelabel.h" 0009 #include <QTest> 0010 QTEST_MAIN(TeamNameLabelTest) 0011 TeamNameLabelTest::TeamNameLabelTest(QObject *parent) 0012 : QObject(parent) 0013 { 0014 } 0015 0016 void TeamNameLabelTest::shouldHaveDefaultValues() 0017 { 0018 TeamNameLabel w; 0019 QCOMPARE(w.textFormat(), Qt::RichText); 0020 QCOMPARE(w.contextMenuPolicy(), Qt::NoContextMenu); 0021 QVERIFY(w.text().isEmpty()); 0022 QCOMPARE(w.textInteractionFlags(), Qt::TextBrowserInteraction); 0023 } 0024 0025 #include "moc_teamnamelabeltest.cpp"