public void testWrapTooltip_longText()
{
String tip = "Now is the winter of our discontent made glorious summer by this sun of York";
- String expected = "<style> p.ttip {width: 350; text-align: justify; word-wrap: break-word;}</style><p class=\"ttip\">"
- + tip + "</p>";
- assertEquals("<html>" + expected + "</html>",
+ String expected = JvSwingUtils.HTML_PREFIX + tip + " </div></html>";
+ assertEquals(expected,
JvSwingUtils.wrapTooltip(true, tip));
assertEquals(expected, JvSwingUtils.wrapTooltip(false, tip));
}