summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-01 11:36:00 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-01 11:36:00 (GMT)
commit1e9559073fafd8cfc894e5c2b0670a9bb49e2a81 (patch)
tree1c6c1c1f230d62fa2b2d1019fed650048ae898fa
parent5d96d2ff7864dc415f61f0d0c86fbe21f80c22c7 (diff)
Now autotest works
-rw-r--r--messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
index edd05d5..508964a 100644
--- a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
+++ b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
@@ -232,7 +232,6 @@ void RichTextComposerNgTest::shouldReplaceSignature_data()
QTest::newRow("withnewlineatbeginandend") << QStringLiteral("\nSignature\nnew line\n") << QStringLiteral("foo bla, bli\nbb")
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
-#if 0 //We need to investigate it
//Add separator AtStart
QTest::newRow("newlinebody-2") << QStringLiteral("Signature") << QStringLiteral("\n")
<< KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddSeparator;
@@ -248,7 +247,6 @@ void RichTextComposerNgTest::shouldReplaceSignature_data()
<< KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddSeparator;
QTest::newRow("withnewlineatbeginandend-2 ") << QStringLiteral("\nSignature\nnew line\n") << QStringLiteral("foo bla, bli\nbb")
<< KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddSeparator;
-#endif
}
void RichTextComposerNgTest::shouldReplaceSignature()
@@ -304,7 +302,7 @@ void RichTextComposerNgTest::shouldReplaceSignature()
//When signature is empty we can't replace it.=> we need to insertSignature
//=> insertSignature(signature, KIdentityManagement::Signature::End, addedText);
- richtextComposerNg.insertSignature(newSignature, KIdentityManagement::Signature::End, KIdentityManagement::Signature::AddSeparator);
+ richtextComposerNg.insertSignature(newSignature, signatureplacement, signatureaddtext);
QCOMPARE(richtextComposerNg.toPlainText(), expected);
}