summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-01 05:23:43 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-01 05:23:43 (GMT)
commit74e2278ac6225498f51bc6b5fdb256bdef6c0af6 (patch)
treecce747682fa45adee5eca6ba7f37c31a1f266bd9
parent7c2f6af16e6704d6e60a1ed1101436eda48cfc04 (diff)
It doesn't reproduce my bug yet
-rw-r--r--messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
index 39313df..31e20a9 100644
--- a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
+++ b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
@@ -230,8 +230,12 @@ void RichTextComposerNgTest::shouldReplaceSignature()
QCOMPARE(richtextComposerNg.toPlainText(), original);
replaceSignature = richtextComposerNg.composerSignature()->replaceSignature(emptySignature, newSignature);
- //When signature is empty we can't replace it.
QVERIFY(!replaceSignature);
+ //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);
+ QCOMPARE(richtextComposerNg.toPlainText(), expected);
}
QTEST_MAIN(RichTextComposerNgTest)