in src/main/java/com/atlassian/uwc/converters/sharepoint/ColorConverterTest.java [388:480]
public void testSample4() {
String input = "<html>\n" +
"\n" +
"<font size=\"7\" color=\"#8b0000\">\n" +
"<span style=\"background-color:rgb(255, 192, 203)\">\n" +
"It\'s my </span>\n" +
"*party *\n" +
"<span style=\"background-color:rgb(255, 192, 203)\">\n" +
"and I\'ll </span>\n" +
"_cry _\n" +
"<span style=\"background-color:rgb(255, 192, 203)\">\n" +
"if I want to.</span>\n" +
"</font>\n" +
"\n" +
"<ul>\n" +
"<li>\n" +
"<font size=\"5\" color=\"#8b0000\">\n" +
"Cry if I want to</font>\n" +
"</li>\n" +
"<li>\n" +
"<font size=\"7\" color=\"#8b0000\">\n" +
"Cry <font size=\"4\">\n" +
"if I want to</font>\n" +
"</font>\n" +
"</li>\n" +
"</ul>\n" +
"<blockquote>\n" +
"<font size=\"7\" color=\"#8b0000\">\n" +
"<font size=\"4\" face=\"Times New Roman\">\n" +
"Formatting oddities of SharePoint have not changed!</font>\n" +
"\n" +
"</font>\n" +
"</blockquote>\n" +
"<font size=\"7\" color=\"#8b0000\">\n" +
"But even so the editor is not bad.\n" +
"\n" +
"<font size=\"5\" color=\"#000000\">\n" +
"Let\'s create a [child page|mytestwiki:child page]\n" +
".</font>\n" +
"\n" +
"</font>\n" +
"\n" +
"</html>";
String expected = "<html>\n" +
"\n" +
"<font size=\"7\">" +
"{panel:bgColor=#ffc0cb}" +
"{color:#8b0000}" +
"\n\n" +
"It\'s my \n" +
"*party *\n" +
"\n" +
"and I\'ll \n" +
"_cry _\n" +
"\n" +
"if I want to." +
"{color}" +
"{panel}\n" +
"</font>\n" +
"\n" +
"<ul>\n" +
"<li>\n" +
"<font size=\"5\">{color:#8b0000}\n" +
"Cry if I want to{color}</font>\n" +
"</li>\n" +
"<li>\n" +
"<font size=\"7\">{color:#8b0000}\n" +
"Cry <font size=\"4\">\n" +
"if I want to</font>\n" +
"{color}</font>\n" +
"</li>\n" +
"</ul>\n" +
"<blockquote>\n" +
"<font size=\"7\">{color:#8b0000}\n" +
"<font size=\"4\" face=\"Times New Roman\">\n" +
"Formatting oddities of SharePoint have not changed!</font>\n" +
"\n" +
"{color}</font>\n" +
"</blockquote>\n" +
"<font size=\"7\">{color:#8b0000}\n" +
"But even so the editor is not bad.\n" +
"\n" +
"<font size=\"5\">{color:#000000}\n" +
"Let\'s create a [child page|mytestwiki:child page]\n" +
".{color}</font>\n" +
"\n" +
"{color}</font>\n" +
"\n" +
"</html>";
String actual = tester.convertColor(input);
assertNotNull(actual);
assertEquals(expected, actual);
}