JAL-3423 testNG fix for revised tooltip html format
[jalview.git] / test / jalview / gui / JvSwingUtilsTest.java
index 5e65cc2..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> 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));
   }