summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-01 20:42:40 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-01 20:42:40 (GMT)
commita6cd5c38522022377520ad03aa8b361d80796396 (patch)
treee89f58212f935804cfb09e21ae244a3d9910743f
parentb26afdfece59781058d3c6c0e7a052c652e5028f (diff)
Add more autotest but it doesn't work. I need to investigate it
-rw-r--r--messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
index 799f25f..f4aa540 100644
--- a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
+++ b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
@@ -299,7 +299,23 @@ void RichTextComposerNgTest::shouldReplaceSignature_data()
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddNewLines;
QTest::newRow("withnewlineatbeginandend-5") << QStringLiteral("\nSignature\nnew line\n") << QStringLiteral("foo bla, bli\nbb")
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddNewLines;
-
+#if 0 //Need to fix it.
+ //Add newline start
+ QTest::newRow("emptybody-6") << QStringLiteral("Signature") << QString()
+ << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNewLines;
+ QTest::newRow("newlinebody-6") << QStringLiteral("Signature") << QStringLiteral("\n")
+ << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNewLines;
+ QTest::newRow("spacebody-6") << QStringLiteral("Signature") << QStringLiteral(" ")
+ << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNewLines;
+ QTest::newRow("simple-6") << QStringLiteral("Signature") << QStringLiteral("foo bla, bli\nbb")
+ << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNewLines;
+ QTest::newRow("withnewline-6") << QStringLiteral("Signature\nnew line") << QStringLiteral("foo bla, bli\nbb")
+ << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNewLines;
+ QTest::newRow("withnewlineatbegin-6") << QStringLiteral("\nSignature\nnew line") << QStringLiteral("foo bla, bli\nbb")
+ << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNewLines;
+ QTest::newRow("withnewlineatbeginandend6") << QStringLiteral("\nSignature\nnew line\n") << QStringLiteral("foo bla, bli\nbb")
+ << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNewLines;
+#endif
}
void RichTextComposerNgTest::shouldReplaceSignature()