summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-23 18:45:49 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-23 18:45:49 (GMT)
commit4fc620d8cd91f7c8f0f4df9ce87e3cbe422bedb3 (patch)
tree0aeaa9f6fd4c8333a526fc6e60caa02109f73223
parent1a254f8e8f049e0cc24780d239fbba6b131ceaa5 (diff)
Add autotest when we select text
-rw-r--r--messagecomposer/autotests/messagefactorytest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/messagecomposer/autotests/messagefactorytest.cpp b/messagecomposer/autotests/messagefactorytest.cpp
index 219e7d5..cae2983 100644
--- a/messagecomposer/autotests/messagefactorytest.cpp
+++ b/messagecomposer/autotests/messagefactorytest.cpp
@@ -677,6 +677,12 @@ void MessageFactoryTest::test_multipartAlternative_data()
QTest::newRow(file.toLatin1().constData()) << QString(dir.path() + QLatin1Char('/') + file) << 1 << "" << "<html><head></head><body>"
"<blockquote>This <i>is</i> the <b>message</b> text <u>from</u> Sudhendu Kumar&lt;dontspamme@yoohoo.com&gt;<br>"
"<br>-- <br>Thanks &amp; Regards<br>Sudhendu Kumar<br>\n</blockquote><br/></body></html>";
+
+ QTest::newRow(file.toLatin1().constData()) << QString(dir.path() + QLatin1Char('/') + file) << 0 << "This *is* the *message* text *from*" <<
+ "> This *is* the *message* text *from*";
+
+ QTest::newRow(file.toLatin1().constData()) << QString(dir.path() + QLatin1Char('/') + file) << 1 << "This *is* the *message* text *from*" <<
+ "<html><head></head><body><blockquote>This *is* the *message* text *from*</blockquote><br/></body></html>";
}
}