summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-25 11:55:39 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-25 11:55:39 (GMT)
commit37ff0ee5741f0314854835deaffc71c3716a39eb (patch)
tree00b452f3dd7037d30e9bd33cf26f16245904e517
parent7a2de14c2cf403cfca2d927eccd669509d70f9f7 (diff)
Fix autotests
-rw-r--r--messagecomposer/autotests/recipientseditortest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/messagecomposer/autotests/recipientseditortest.cpp b/messagecomposer/autotests/recipientseditortest.cpp
index 5f09ac3..085c39b 100644
--- a/messagecomposer/autotests/recipientseditortest.cpp
+++ b/messagecomposer/autotests/recipientseditortest.cpp
@@ -71,7 +71,7 @@ void RecipientsEditorTest::test_addLineOnCommaPress()
QTest::keyClicks(lineEdit, QStringLiteral("\"Vratil, Daniel\" <dvratil@kde.org>"), Qt::NoModifier, 10);
QCOMPARE(editor.recipients().size(), 1);
- QCOMPARE(editor.recipients().first()->email(), QStringLiteral("dvratil@kde.org"));
+ QCOMPARE(editor.recipients().first()->email(), QStringLiteral("\"Vratil, Daniel\" <dvratil@kde.org>"));
QTest::keyClick(lineEdit, Qt::Key_Comma, Qt::NoModifier, 0);
@@ -95,7 +95,7 @@ void RecipientsEditorTest::test_splitStringInputToLines()
QCOMPARE(editor.recipients().size(), 2);
QCOMPARE(editor.recipients().at(0)->email(), QStringLiteral("test@example.com"));
- QCOMPARE(editor.recipients().at(1)->email(), QStringLiteral("dvratil@kde.org"));
+ QCOMPARE(editor.recipients().at(1)->email(), QStringLiteral("\"Vrátil, Daniel\" <dvratil@kde.org>"));
}
void RecipientsEditorTest::test_splitPastedListToLines()
@@ -117,7 +117,7 @@ void RecipientsEditorTest::test_splitPastedListToLines()
[&editor]() {
QCOMPARE(editor.recipients().size(), 2);
QCOMPARE(editor.recipients().at(0)->email(), QStringLiteral("test@example.com"));
- QCOMPARE(editor.recipients().at(1)->email(), QStringLiteral("dvratil@kde.org"));
+ QCOMPARE(editor.recipients().at(1)->email(), QStringLiteral("\"Vrátil, Daniel\" <dvratil@kde.org>"));
}();
clipboard->setText(oldText);