Commit 34e1203f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more autotests

parent 0b5efe57
......@@ -20,6 +20,8 @@
#include "dkimauthenticationverifiedserverwidgettest.h"
#include "dkimauthenticationverifiedserverwidget.h"
#include <QTest>
#include <QVBoxLayout>
QTEST_MAIN(DKIMAuthenticationVerifiedServerWidgetTest)
DKIMAuthenticationVerifiedServerWidgetTest::DKIMAuthenticationVerifiedServerWidgetTest(QObject *parent)
: QObject(parent)
......@@ -30,5 +32,7 @@ DKIMAuthenticationVerifiedServerWidgetTest::DKIMAuthenticationVerifiedServerWidg
void DKIMAuthenticationVerifiedServerWidgetTest::shouldHaveDefaultValues()
{
DKIMAuthenticationVerifiedServerWidget w;
//TODO
QVBoxLayout *mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
}
......@@ -24,6 +24,9 @@
DKIMAuthenticationVerifiedServerWidget::DKIMAuthenticationVerifiedServerWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
}
......
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