summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-25 11:39:15 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-25 11:39:15 (GMT)
commitdb32210ef9a7ddba69fc5d82b262d67d83a7cf10 (patch)
tree203503b6e89b390595b170297f5fcb50408e71e0
parent144a531e56273d2dcb1165b289aca3ebb76471ad (diff)
Add autotest for bug-370452
-rw-r--r--messageviewer/src/messagepartthemes/default/autotests/quotehtmltest.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/messageviewer/src/messagepartthemes/default/autotests/quotehtmltest.cpp b/messageviewer/src/messagepartthemes/default/autotests/quotehtmltest.cpp
index 965fe6e..8eabcc6 100644
--- a/messageviewer/src/messagepartthemes/default/autotests/quotehtmltest.cpp
+++ b/messageviewer/src/messagepartthemes/default/autotests/quotehtmltest.cpp
@@ -95,6 +95,18 @@ void QuoteHtmlTest::testQuoteHtml_data()
"<div class=\"quotelevel1\"><div dir=\"ltr\"><span class=\"quotemarks\">></span><font color=\"#008000\">new quote1</font></div></div></blockquote><div class=\"noquote\"><div dir=\"ltr\">new text</div></div>").arg(mCollapseIcon).arg(mExpandIcon)
<< true << 1;
+
+ QTest::newRow("bug-370452") << QStringLiteral("test\n> blo\n>\n>\n>\n> bla\nnew text") <<
+ QStringLiteral("<div class=\"noquote\">"
+ "<div dir=\"ltr\">test</div></div>"
+ "<blockquote><div class=\"quotelevel1\"><div dir=\"ltr\"><span class=\"quotemarks\">> </span><font color=\"#008000\">blo</font></div>"
+ "<div dir=\"ltr\"><span class=\"quotemarks\">></span></div>"
+ "<div dir=\"ltr\"><span class=\"quotemarks\">></span></div>"
+ "<div dir=\"ltr\"><span class=\"quotemarks\">></span></div>"
+ "<div dir=\"ltr\"><span class=\"quotemarks\">> </span><font color=\"#008000\">bla</font></div></div></blockquote>"
+ "<div class=\"noquote\"><div dir=\"ltr\">new text</div></div>") << false << 1;
+
+
}
void QuoteHtmlTest::testQuoteHtml()