diff --git a/tests/src/com/fsck/k9/helper/HtmlConverterTest.java b/tests/src/com/fsck/k9/helper/HtmlConverterTest.java index 1b24da791..f18844480 100644 --- a/tests/src/com/fsck/k9/helper/HtmlConverterTest.java +++ b/tests/src/com/fsck/k9/helper/HtmlConverterTest.java @@ -25,7 +25,26 @@ public class HtmlConverterTest extends TestCase { ">> Guess!"; String result = HtmlConverter.textToHtml(message); writeToFile(result); - assertEquals("
Panama!", result); + assertEquals("
Bob Barker <bob@aol.com> wrote:a canal
Dorothy Jo Gideon <dorothy@aol.com> espoused:A man, a plan...Too easy!
Nice job :)Guess!
" + + "Panama!", result); } public void testTextQuoteToHtmlBlockquoteIndented() { @@ -39,7 +58,18 @@ public class HtmlConverterTest extends TestCase { "> :)"; String result = HtmlConverter.textToHtml(message); writeToFile(result); - assertEquals("
" + + "
" + + "Bob Barker <bob@aol.com> wrote:
" + + "" + + "a canal" + + "
" + + "
" + + "Dorothy Jo Gideon <dorothy@aol.com> espoused:
" + + "" + + "A man, a plan..." + + "Too easy!
" + + "
" + + "Nice job :)
" + + "" + + "" + + "" + + "Guess!" + + "" + + "
*facepalm*", result); + assertEquals("
Bob Barker <bob@aol.com> wrote:A wise man once said...
LOL F1RST!!!!!
:)
" + + "*facepalm*", result); + } public void testQuoteDepthColor() { @@ -62,7 +92,27 @@ public class HtmlConverterTest extends TestCase { ">>>>>> six"; String result = HtmlConverter.textToHtml(message); writeToFile(result); - assertEquals("
" + + "
" + + "Bob Barker <bob@aol.com> wrote:
" + + "" + + "A wise man once said...
" + + "
" + + "LOL F1RST!!!!!
" + + "
" + + ":)" + + "
zero", result); + assertEquals("onetwothreefourfivesix
" + + "zero", result); } private void writeToFile(final String content) {
" + + "" + + "one" + + "
" + + "" + + "two" + + "
" + + "" + + "three" + + "
" + + "" + + "four" + + "
" + + "" + + "five" + + "
" + + "" + + "six" + + "" + + "