Bugs item #1636773, was opened at 2007-01-16 14:07 Message generated for change (Comment added) made by henryju You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1636773&group_id=61302
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: HtmlUnit plugin >Group: Release 1.5 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Umkhulubaas (umk) >Assigned to: Julien HENRY (henryju) Summary: assertTableRowsEqual semicolon behavior Initial Comment: I have a table containing a cell with semicolon separated text. When I try asserting its contents with assertTableRowsEqual, the test fails with the error below. For some reason, a space is inserted just before each semicolon. I don’t see the space in my HTML or my assert code. Where is it coming from? (confirmed by Julien Henry: http://sourceforge.net/mailarchive/forum.php?thread_id=31476864&forum_id=40830) junit.framework.AssertionFailedError: Coronary Heart Disease (CHD); Other Cardiovascular Disease; Diabetes; Stroke do not equal Coronary Heart Disease (CHD) ; Other Cardiovascular Disease ; Diabetes ; Stroke Here’s my code (JWebUnit 1.4): public void testMe() { beginAt("/test.htm"); assertTableRowsEqual("TABLE_RISK_BIOMARKERS_EXTRA", 0, new String[][] { new String[] { "Disease History", "Coronary Heart Disease (CHD); Other Cardiovascular Disease; Diabetes; Stroke" } }); } And here’s test.htm <body> <table border="1" cellspacing="0" width="100%" id="TABLE_RISK_BIOMARKERS_EXTRA"> <tr> <td>Disease History</td> <td><a id="HEART_DISEASE_MEMBER" href>Coronary Heart Disease (CHD)</a><a id="CARDIOVASCULAR_OTHER" href>; Other Cardiovascular Disease</a><a id="DIABETES_MEMBER" href="">; Diabetes</a><a id="STROKE_MEMBER" href>; Stroke</a></td> </tr> </table> </body> ---------------------------------------------------------------------- >Comment By: Julien HENRY (henryju) Date: 2008-04-14 12:16 Message: Logged In: YES user_id=1235926 Originator: NO Seems to be fixed with HtmlUnit 1.14. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1636773&group_id=61302 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ JWebUnit-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-development
