mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Added more tests for preserve spaces
This commit is contained in:
parent
fa80313f6b
commit
3c83f7354e
@ -138,14 +138,22 @@ public class HtmlConverterTest extends TestCase {
|
|||||||
String message = "foo\n"
|
String message = "foo\n"
|
||||||
+ " bar\n"
|
+ " bar\n"
|
||||||
+ " baz\n"
|
+ " baz\n"
|
||||||
+ "\n";
|
+ " \n"
|
||||||
|
+ " &\n"
|
||||||
|
+ " \r\n"
|
||||||
|
+ " <\n"
|
||||||
|
+ " >\n";
|
||||||
String result = HtmlConverter.textToHtml(message);
|
String result = HtmlConverter.textToHtml(message);
|
||||||
writeToFile(result);
|
writeToFile(result);
|
||||||
assertEquals("<pre class=\"k9mail\">"
|
assertEquals("<pre class=\"k9mail\">"
|
||||||
+ "foo<br />"
|
+ "foo<br />"
|
||||||
+ " bar<br />"
|
+ " bar<br />"
|
||||||
+ " baz<br />"
|
+ " baz<br />"
|
||||||
+ "<br />"
|
+ " <br />"
|
||||||
|
+ " &<br />"
|
||||||
|
+ " <br />"
|
||||||
|
+ " <<br />"
|
||||||
|
+ " ><br />"
|
||||||
+ "</pre>", result);
|
+ "</pre>", result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user