summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-07 21:41:51 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-07 21:41:51 (GMT)
commitee46041babbb546922a7b75467cea11272819f4a (patch)
treeaeaacf488adeba4779469e81773e389171502953
parentf48c6cb2fcb5c674cbf82a398f6e91f2c57a5c66 (diff)
Add more autotest
-rw-r--r--messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
index 1fa3f06..2528808 100644
--- a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
+++ b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
@@ -454,6 +454,22 @@ void RichTextComposerNgTest::shouldLoadSignatureFromCommand_data()
QTest::newRow("command1") << QStringLiteral("echo \"foo\"") << QStringLiteral("\n")
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
+ QTest::newRow("command2") << QStringLiteral("echo \"foo\"") << QStringLiteral("foo ddd \n")
+ << KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
+ QTest::newRow("command3") << QStringLiteral("echo \"foo\"") << QString()
+ << KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
+ QTest::newRow("command4") << QStringLiteral("echo \"foo\nsss\"") << QString()
+ << KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
+ QTest::newRow("command5") << QStringLiteral("echo \"foo\nsss\n\"") << QStringLiteral("foo ddd \n")
+ << KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
+
+ //Start
+ QTest::newRow("command6") << QStringLiteral("echo \"foo\nsss\n\"") << QStringLiteral("foo ddd \n")
+ << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddSeparator;
+
+ //Failed
+ //QTest::newRow("command7") << QStringLiteral("echo \"foo\nsss\n\"") << QStringLiteral("foo ddd \n")
+ // << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNewLines;
}
void RichTextComposerNgTest::shouldLoadSignatureFromCommand()