Commit a99b2587 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more autotest

parent 5e1acb11
Pipeline #74368 passed with stage
in 54 minutes and 3 seconds
......@@ -19,21 +19,17 @@ ConfirmBeforeDeletingMessageBoxWidgetTest::ConfirmBeforeDeletingMessageBoxWidget
void ConfirmBeforeDeletingMessageBoxWidgetTest::shouldHaveDefaultValues()
{
ConfirmBeforeDeletingMessageBoxWidget w;
// TODO
auto mUseSameResultForOtherCheck = w.findChild<QCheckBox *>(QStringLiteral("mUseSameResultForOtherCheck"));
QVERIFY(mUseSameResultForOtherCheck);
QVERIFY(!mUseSameResultForOtherCheck->text().isEmpty());
QVERIFY(!mUseSameResultForOtherCheck->isChecked());
#if 0
, mLabelInfo(new QLabel(this))
, mUseSameResultForOtherCheck(new QCheckBox(i18n("Reuse..."), this)) //TODO fix i18n
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins({});
mLabelInfo->setObjectName(QStringLiteral("mLabelInfo"));
mLabelInfo->setWordWrap(true);
mainLayout->addWidget(mLabelInfo);
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), {});
mUseSameResultForOtherCheck->setObjectName(QStringLiteral("mUseSameResultForOtherCheck"));
mainLayout->addWidget(mUseSameResultForOtherCheck);
#endif
auto mLabelInfo = w.findChild<QLabel *>(QStringLiteral("mLabelInfo"));
QVERIFY(mLabelInfo);
QVERIFY(mLabelInfo->text().isEmpty());
QVERIFY(mLabelInfo->wordWrap());
}
......@@ -26,6 +26,8 @@ ConfirmBeforeDeletingMessageBoxWidget::ConfirmBeforeDeletingMessageBoxWidget(QWi
mUseSameResultForOtherCheck->setObjectName(QStringLiteral("mUseSameResultForOtherCheck"));
mainLayout->addWidget(mUseSameResultForOtherCheck);
mUseSameResultForOtherCheck->setChecked(false);
}
ConfirmBeforeDeletingMessageBoxWidget::~ConfirmBeforeDeletingMessageBoxWidget()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment