JAL-3423 testNG fix for revised tooltip html format
[jalview.git] / test / jalview / gui / PopupMenuTest.java
index e42c34c..e9b6e54 100644 (file)
@@ -199,9 +199,8 @@ public class PopupMenuTest
     // String expected = "<html><style> p.ttip {width: 350; text-align: justify;
     // word-wrap: break-word;}</style><p class=\"ttip\">"
     // + s + "<br/>Jmol/secondary structure<br/>PDB/Temp</p></html>";
-    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 = JvSwingUtils.HTML_PREFIX + s
+            + "<br/>Jmol/secondary structure<br/>PDB/Temp</div></html>";
     assertEquals(expected, menu.getToolTipText());
   }
 
@@ -226,8 +225,8 @@ public class PopupMenuTest
     // String expected = "<html><style> p.ttip {width: 350; text-align: justify;
     // word-wrap: break-word;}</style><p class=\"ttip\">"
     // + s + "<br/>Jmol/secondary structure<br/>PDB/Temp</p></html>";
-    String expected = "<html><style> div.ttip {width:350px;white-space:pre-wrap;padding:2px;overflow-wrap:break-word;}</style>"
-            + "<div class=\"ttip\">Add annotations for<br/>Jmol/secondary structure<br/>PDB/Temp </div></html>";
+    String expected = JvSwingUtils.HTML_PREFIX
+            + "Add annotations for<br/>Jmol/secondary structure<br/>PDB/Temp</div></html>";
     assertEquals(expected, menu.getToolTipText());
   }