From: <bo...@us...> - 2008-01-04 09:39:27
|
Revision: 234 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=234&view=rev Author: bodewig Date: 2008-01-04 01:39:29 -0800 (Fri, 04 Jan 2008) Log Message: ----------- Add testcase for bug report 1833632 Modified Paths: -------------- trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java Modified: trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java =================================================================== --- trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java 2007-11-27 12:27:27 UTC (rev 233) +++ trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java 2008-01-04 09:39:29 UTC (rev 234) @@ -728,4 +728,20 @@ } } + /** + * Bug Report 1863632 + * @see http://sourceforge.net/tracker/index.php?func=detail&aid=1863632&group_id=23187&atid=377768 + */ + public void testBasicWhitespaceHandling() throws Exception { + String control = "<a><b/></a>"; + String test = "<a>\r\n <b/>\r\n</a>"; + XMLUnit.setIgnoreWhitespace(true); + try { + Diff diff = XMLUnit.compareXML(control, test); + assertTrue(diff.toString(), diff.identical()); + } finally { + XMLUnit.setIgnoreWhitespace(false); + } + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |