Commit 29aab07a authored by Laurent Montel's avatar Laurent Montel 😁

Add more autotests

parent faa39b95
<br><div align="center"><pre style="text-align: left; border: solid black 1px; padding: 0.5em; margin: 0em;"><span style="font-weight:bold;">diff --git a/plugins/messageviewer/bodypartformatter/ms-tnef/application_ms-tnef.cpp b/plugins/messageviewer/bodypartformatter/ms-tnef/application_ms-tnef.cpp</span>
index b69f56c0..2cc4ab92 100644
<span style="color:#0057ae;">--- a/plugins/messageviewer/bodypartformatter/ms-tnef/application_ms-tnef.cpp</span>
<span style="color:#0057ae;">+++ b/plugins/messageviewer/bodypartformatter/ms-tnef/application_ms-tnef.cpp</span>
<span style="color:#0057ae;">@@ -166,7 +166,7 @@ public:</span>
attFileName = att-&gt;name();
}
bodyPart-&gt;nodeHelper()-&gt;addTempFile(dir + QDir::separator() + attFileName);
<span style="color:#bf0303;">- const QString href = QStringLiteral(&quot;file:&quot;) + QString::fromLatin1(QUrl::toPercentEncoding(dir + QDir::separator() + att-&gt;name()));</span>
<span style="color:#0057ae;">+ const QString href = QStringLiteral(&quot;file:&quot;) + dir + QDir::separator() + attFileName;</span>
const QString iconName = QUrl::fromLocalFile(MessageViewer::Util::iconPathForMimetype(att-&gt;mimeTag(),
KIconLoader::Desktop, attFileName)).url();
</pre></div>
\ No newline at end of file
......@@ -42,6 +42,7 @@ void DiffHighlighterTest::shouldGenerateDiff_data()
{
QTest::addColumn<QString>("input");
QTest::newRow("test1") << QStringLiteral("test1");
QTest::newRow("kcontact1") << QStringLiteral("kcontact1");
}
void DiffHighlighterTest::shouldGenerateDiff()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment