File indexing completed on 2024-12-01 04:20:46
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "bergamotenginelanguagewidgettest.h" 0007 #include "bergamotenginelanguagewidget.h" 0008 #include <QTest> 0009 #include <QVBoxLayout> 0010 QTEST_MAIN(BergamotEngineLanguageWidgetTest) 0011 BergamotEngineLanguageWidgetTest::BergamotEngineLanguageWidgetTest(QObject *parent) 0012 : QObject{parent} 0013 { 0014 } 0015 0016 void BergamotEngineLanguageWidgetTest::shouldHaveDefaultValues() 0017 { 0018 BergamotEngineLanguageWidget w; 0019 auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout")); 0020 QVERIFY(mainLayout); 0021 QCOMPARE(mainLayout->contentsMargins(), QMargins{}); 0022 0023 // TODO 0024 } 0025 0026 #include "moc_bergamotenginelanguagewidgettest.cpp"