Commit 99bc7e11 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more autotests

parent cebc67bf
......@@ -43,6 +43,7 @@ void ConfirmAddressWidgetTest::shouldHaveDefaultValue()
QListWidget *listEmails = w.findChild<QListWidget *>(QStringLiteral("listemails"));
QVERIFY(listEmails);
QCOMPARE(listEmails->count(), 0);
}
QTEST_MAIN(ConfirmAddressWidgetTest)
......@@ -42,10 +42,15 @@ ConfirmAddressWidget::~ConfirmAddressWidget()
void ConfirmAddressWidget::setValidAddresses(const QStringList &addresses)
{
//TODO
createAddressItems(addresses, true);
}
void ConfirmAddressWidget::setInvalidAddresses(const QStringList &addresses)
{
createAddressItems(addresses, false);
}
void ConfirmAddressWidget::createAddressItems(const QStringList &address, bool valid)
{
//TODO
}
......@@ -32,6 +32,7 @@ public:
void setValidAddresses(const QStringList &addresses);
void setInvalidAddresses(const QStringList &addresses);
private:
void createAddressItems(const QStringList &address, bool valid);
QListWidget *listEmails;
};
......
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