Added more tests for preserve spaces
This commit is contained in:
parent
fa80313f6b
commit
3c83f7354e
1 changed files with 10 additions and 2 deletions
|
@ -138,14 +138,22 @@ public class HtmlConverterTest extends TestCase {
|
|||
String message = "foo\n"
|
||||
+ " bar\n"
|
||||
+ " baz\n"
|
||||
+ "\n";
|
||||
+ " \n"
|
||||
+ " &\n"
|
||||
+ " \r\n"
|
||||
+ " <\n"
|
||||
+ " >\n";
|
||||
String result = HtmlConverter.textToHtml(message);
|
||||
writeToFile(result);
|
||||
assertEquals("<pre class=\"k9mail\">"
|
||||
+ "foo<br />"
|
||||
+ " bar<br />"
|
||||
+ " baz<br />"
|
||||
+ "<br />"
|
||||
+ " <br />"
|
||||
+ " &<br />"
|
||||
+ " <br />"
|
||||
+ " <<br />"
|
||||
+ " ><br />"
|
||||
+ "</pre>", result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue