JAL-3423 testNG fix for revised tooltip html format
[jalview.git] / test / jalview / gui / JvSwingUtilsTest.java
index 61c5c9b..5a8fba7 100644 (file)
@@ -113,9 +113,8 @@ public class JvSwingUtilsTest
   public void testWrapTooltip_longText()
   {
     String tip = "Now is the winter of our discontent made glorious summer by this sun of York";
-    String expected = "<style> div.ttip {width:350px;white-space:pre-wrap;padding:2px;overflow-wrap:break-word;}</style>"
-            + "<div class=\"ttip\">" + tip + " </div>";
-    assertEquals("<html>" + expected + "</html>",
+    String expected = JvSwingUtils.HTML_PREFIX + tip + " </div></html>";
+    assertEquals(expected,
             JvSwingUtils.wrapTooltip(true, tip));
     assertEquals(expected, JvSwingUtils.wrapTooltip(false, tip));
   }