File indexing completed on 2024-12-22 04:28:22
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "voskenginedialogtest.h" 0007 #include "voskenginedialog.h" 0008 #include "voskenginelanguagewidget.h" 0009 #include <QDialogButtonBox> 0010 #include <QStandardPaths> 0011 #include <QTest> 0012 #include <QVBoxLayout> 0013 QTEST_MAIN(VoskEngineDialogTest) 0014 VoskEngineDialogTest::VoskEngineDialogTest(QObject *parent) 0015 : QObject{parent} 0016 { 0017 } 0018 0019 void VoskEngineDialogTest::shouldHaveDefaultValues() 0020 { 0021 VoskEngineDialog w; 0022 QVERIFY(!w.windowTitle().isEmpty()); 0023 auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout")); 0024 QVERIFY(mainLayout); 0025 0026 auto mVoskEngineWidget = w.findChild<VoskEngineLanguageWidget *>(QStringLiteral("mVoskEngineWidget")); 0027 QVERIFY(mVoskEngineWidget); 0028 0029 auto buttonBox = w.findChild<QDialogButtonBox *>(QStringLiteral("buttonBox")); 0030 QVERIFY(buttonBox); 0031 } 0032 0033 #include "moc_voskenginedialogtest.cpp"