summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-31 05:22:04 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-31 05:22:04 (GMT)
commit8cb90cd0a9592cd63c394dc6438545792baf4127 (patch)
tree0ceb66a7f5b1bb01b8a539456dd9af5cade353fb
parent20a43b9a69402b8efb3c0c7444ab22ae76a83c8f (diff)
Test KIdentityManagement::Signature::End
-rw-r--r--messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
index 4558115..f5cd9ec 100644
--- a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
+++ b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
@@ -135,6 +135,15 @@ void RichTextComposerNgTest::shouldAddSignature_data()
QTest::newRow("startandnothing") << QStringLiteral("foo bla, bli\nbb") << QStringLiteral("Signaturefoo bla, bli\nbb")
<< KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNothing;
+
+ QTest::newRow("endandaddseparator") << QStringLiteral("foo bla, bli\nbb") << QStringLiteral("foo bla, bli\nbb-- \nSignature")
+ << KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
+
+ QTest::newRow("endandnewline") << QStringLiteral("foo bla, bli\nbb") << QStringLiteral("foo bla, bli\nbb\nSignature")
+ << KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddNewLines;
+
+ QTest::newRow("endandnothing") << QStringLiteral("foo bla, bli\nbb") << QStringLiteral("foo bla, bli\nbbSignature")
+ << KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddNothing;
}
void RichTextComposerNgTest::shouldAddSignature()