From: <bo...@us...> - 2009-01-30 16:28:01
|
Revision: 289 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=289&view=rev Author: bodewig Date: 2009-01-30 16:27:56 +0000 (Fri, 30 Jan 2009) Log Message: ----------- reset tracked attribute if the attribute cannot be found, issue 2386807 Modified Paths: -------------- trunk/xmlunit/src/java/org/custommonkey/xmlunit/DifferenceEngine.java trunk/xmlunit/src/user-guide/XMLUnit-Java.xml Modified: trunk/xmlunit/src/java/org/custommonkey/xmlunit/DifferenceEngine.java =================================================================== --- trunk/xmlunit/src/java/org/custommonkey/xmlunit/DifferenceEngine.java 2009-01-30 16:20:20 UTC (rev 288) +++ trunk/xmlunit/src/java/org/custommonkey/xmlunit/DifferenceEngine.java 2009-01-30 16:27:56 UTC (rev 289) @@ -1,6 +1,6 @@ /* ****************************************************************** -Copyright (c) 2001-2008, Jeff Martin, Tim Bacon +Copyright (c) 2001-2009, Jeff Martin, Tim Bacon All rights reserved. Redistribution and use in source and binary forms, with or without @@ -568,6 +568,8 @@ nextAttr, compareTo, listener, ATTR_SEQUENCE); } } else { + controlTracker.clearTrackedAttribute(); + testTracker.clearTrackedAttribute(); compare(attrName, null, control, test, listener, ATTR_NAME_NOT_FOUND); } @@ -580,6 +582,8 @@ compareRecognizedXMLSchemaInstanceAttribute(null, nextAttr, listener); } else { + controlTracker.clearTrackedAttribute(); + testTracker.clearTrackedAttribute(); compare(null, getUnNamespacedNodeName(nextAttr, isNamespaced(nextAttr)), Modified: trunk/xmlunit/src/user-guide/XMLUnit-Java.xml =================================================================== --- trunk/xmlunit/src/user-guide/XMLUnit-Java.xml 2009-01-30 16:20:20 UTC (rev 288) +++ trunk/xmlunit/src/user-guide/XMLUnit-Java.xml 2009-01-30 16:27:56 UTC (rev 289) @@ -3516,6 +3516,38 @@ </section> </section> + <section id="Changes 1.3"> + <title>Changes from XMLUnit 1.2 to 1.3</title> + + <section id="Breaking Changes 1.2"> + <title>Breaking Changes</title> + + <itemizedlist> + </itemizedlist> + </section> + + <section id="New Features 1.2"> + <title>New Features</title> + + <itemizedlist> + </itemizedlist> + </section> + + <section id="Bugfixes 1.2"> + <title>Important Bug Fixes</title> + + <itemizedlist> + <listitem> + If XMLUnit couldn't match attributes (i.e. it encountered + a <literal>ATTR_NAME_NOT_FOUND_ID</literal> kind of + difference), the XPath expressions of the node details + have been random. <ulink + url="https://sourceforge.net/tracker/index.php?func=detail&aid=2386807&group_id=23187&atid=377768">Issue 2386807</ulink>. + </listitem> + </itemizedlist> + </section> + </section> + </appendix> </article> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |