From: <bo...@us...> - 2010-08-31 16:25:05
|
Revision: 450 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=450&view=rev Author: bodewig Date: 2010-08-31 16:24:59 +0000 (Tue, 31 Aug 2010) Log Message: ----------- provide correct Difference type for Comment and CDATA text differences Modified Paths: -------------- trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/NewDifferenceEngine.java Modified: trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/NewDifferenceEngine.java =================================================================== --- trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/NewDifferenceEngine.java 2010-08-31 16:24:10 UTC (rev 449) +++ trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/NewDifferenceEngine.java 2010-08-31 16:24:59 UTC (rev 450) @@ -52,6 +52,7 @@ import org.w3c.dom.Comment; import org.w3c.dom.Element; import org.w3c.dom.Node; +import org.w3c.dom.Text; /** * Class that has responsibility for comparing Nodes and notifying a @@ -192,8 +193,9 @@ } else if (comp.getControlDetails().getTarget() instanceof Comment) { proto = COMMENT_VALUE; + } else { + proto = TEXT_VALUE; } - proto = TEXT_VALUE; break; case PROCESSING_INSTRUCTION_TARGET: proto = PROCESSING_INSTRUCTION_TARGET; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |