You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by pa...@apache.org on 2001/09/26 15:12:23 UTC
cvs commit: xml-xalan/c/Tests/Harness XMLFileReporter.cpp XMLFileReporter.hpp
pauldick 01/09/26 06:12:23
Modified: c/Tests/Harness XMLFileReporter.cpp XMLFileReporter.hpp
Log:
Added additional method logCheckFail that takes single hashtable
Revision Changes Path
1.10 +19 -0 xml-xalan/c/Tests/Harness/XMLFileReporter.cpp
Index: XMLFileReporter.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/Harness/XMLFileReporter.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- XMLFileReporter.cpp 2001/09/21 20:55:34 1.9
+++ XMLFileReporter.cpp 2001/09/26 13:12:23 1.10
@@ -443,6 +443,25 @@
}
void
+XMLFileReporter::logCheckFail(const XalanDOMString& test, Hashtable actexp)
+{
+ if (isReady())
+ {
+ printToFile(CHECKFAIL_HDR + escapestring(test) + "\"");
+
+ printToFile(XalanDOMString(">"));
+
+ Hashtable::iterator aeEnd = actexp.end();
+ for(Hashtable::iterator ii = actexp.begin(); ii != aeEnd; ++ii)
+ {
+ logElement((*ii).first, (*ii).second);
+ }
+
+ printToFile(CHECKFAIL_FTR);
+ }
+}
+
+void
XMLFileReporter::logCheckFail(const XalanDOMString& test, Hashtable attrs, Hashtable actexp)
{
if (isReady())
1.7 +3 -1 xml-xalan/c/Tests/Harness/XMLFileReporter.hpp
Index: XMLFileReporter.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/Harness/XMLFileReporter.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XMLFileReporter.hpp 2001/09/14 21:00:32 1.6
+++ XMLFileReporter.hpp 2001/09/26 13:12:23 1.7
@@ -70,7 +70,7 @@
/**
* Reporter that saves output to a simple XML-format file.
* @author Shane_Curcuru@lotus.com
- * @version $Id: XMLFileReporter.hpp,v 1.6 2001/09/14 21:00:32 pauldick Exp $
+ * @version $Id: XMLFileReporter.hpp,v 1.7 2001/09/26 13:12:23 pauldick Exp $
*/
#if defined HARNESS_EXPORTS
@@ -290,6 +290,8 @@
void logCheckFail(const XalanDOMString& comment);
void logCheckFail(const XalanDOMString& test, Hashtable faildata, Hashtable actexp);
+
+ void logCheckFail(const XalanDOMString& test, Hashtable actexp);
void logErrorResult(const XalanDOMString& test, const XalanDOMString& reason);
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org