{
continue;
}
- maxLengthExceeded = line.length() > 60;
+ String linetext = line.replaceAll("<[^>]+>", "");
+ maxLengthExceeded = linetext.length() > 60;
if (sb.length() > 0)
{
sb.append(br);
testee.configureReferenceAnnotationsMenu(menu, seqs);
assertTrue(menu.isEnabled());
String s = MessageManager.getString("label.add_annotations_for");
- String expected = "<html><style> div.ttip {width:350px;white-space:pre-wrap;padding:2px;overflow-wrap:break-word;}</style>"
- + "<div class=\"ttip\">" + s
- + "<br/>Jmol/secondary structure<br/>PDB/Temp </div></html>";
+ String expected = "<html>" + s
+ + "<br/>Jmol/secondary structure<br/>PDB/Temp</html>";
assertEquals(expected, menu.getToolTipText());
}