summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-05 11:22:23 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-05 11:22:23 (GMT)
commitbb7f48138f0ba14a8cdda8926147a4c1f3ff4cbc (patch)
tree908c4a3a4182c506dd60eb3fa532f68b38be6ba1
parentc083d76bcd58a0d4279f6402b42c08f737702c29 (diff)
Add more autotests about signature
-rw-r--r--messagecomposer/src/composer-ng/autotests/data/signature2.txt5
-rw-r--r--messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp4
2 files changed, 8 insertions, 1 deletions
diff --git a/messagecomposer/src/composer-ng/autotests/data/signature2.txt b/messagecomposer/src/composer-ng/autotests/data/signature2.txt
new file mode 100644
index 0000000..d37d1e1
--- /dev/null
+++ b/messagecomposer/src/composer-ng/autotests/data/signature2.txt
@@ -0,0 +1,5 @@
+--------------------
+Signature bla bla
+Blo bli
+foo
+--------------------
diff --git a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
index 52c6002..0c0d4d3 100644
--- a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
+++ b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
@@ -378,9 +378,11 @@ void RichTextComposerNgTest::shouldLoadSignatureFromFile_data()
QTest::addColumn<KIdentityManagement::Signature::Placement>("signatureplacement");
QTest::addColumn<KIdentityManagement::Signature::AddedTextFlag>("signatureaddtext");
- QTest::newRow("newlinebody") << QStringLiteral("signature1.txt") << QStringLiteral("\n")
+ QTest::newRow("signature1") << QStringLiteral("signature1.txt") << QStringLiteral("\n")
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
+ QTest::newRow("signature2") << QStringLiteral("signature2.txt") << QStringLiteral("\n")
+ << KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
}
void RichTextComposerNgTest::shouldLoadSignatureFromFile()