Commit e96488e2 authored by Laurent Montel's avatar Laurent Montel 😁

Add more autotests. Define first item as empty

parent 9f3e32c2
......@@ -38,6 +38,11 @@ void SelectHeaderTypeComboBoxTest::shouldHaveDefaultValue()
KSieveUi::SelectHeaderTypeComboBox combox;
QVERIFY(combox.isEditable());
QVERIFY(combox.count() > 0);
KSieveUi::SelectHeaderTypeComboBox combox1(true); /*onlyEnvelopType*/
QVERIFY(combox1.isEditable());
QVERIFY(combox1.count() > 0);
}
QTEST_MAIN(SelectHeaderTypeComboBoxTest)
......@@ -229,6 +229,7 @@ void SelectHeaderTypeComboBox::slotSelectItem(const QString &str)
void SelectHeaderTypeComboBox::headerMap(bool onlyEnvelopType)
{
mHeaderMap.insert(QString(), QString());
mHeaderMap.insert(QStringLiteral("from"), i18n("From"));
mHeaderMap.insert(QStringLiteral("to"), i18n("To"));
mHeaderMap.insert(QStringLiteral("Reply-To"), i18n("Reply To"));
......
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