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/10/19 20:07:04 UTC

cvs commit: xml-xalan/c/Tests/Harness XMLFileReporter.cpp

pauldick    01/10/19 11:07:04

  Modified:    c/Tests/Harness XMLFileReporter.cpp
  Log:
  Modified logElement so that CRLF were not being added to elements,
  rearranged overloaded functions.
  
  Revision  Changes    Path
  1.11      +24 -27    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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- XMLFileReporter.cpp	2001/09/26 13:12:23	1.10
  +++ XMLFileReporter.cpp	2001/10/19 18:07:04	1.11
  @@ -318,12 +318,10 @@
          )
       {
   
  -        printToFile("<" + escapestring(element) + ">");
  +	const XalanDOMString escElement(escapestring(element));
  +	const XalanDOMString theElement("<" + escElement + ">" + msg + "</" + escElement + ">");
  +	printToFile(theElement);
   
  -        if (msg.empty() == 0)
  -            //printToFile(escapestring(msg));
  -			printToFile(msg);
  -        printToFile("</" + escapestring(element) + ">");
       }
   }
   
  @@ -409,18 +407,6 @@
   }
   
   
  -
  -void 
  -XMLFileReporter::logCheckAmbiguous(const XalanDOMString& comment)
  -{
  -    if (isReady())
  -    {
  -        printToFile(CHECKAMBG_HDR + escapestring(comment) + "\"/>");
  -    }
  -}
  -
  -
  -
   void 
   XMLFileReporter::logCheckFail(const XalanDOMString& comment)
   {
  @@ -433,16 +419,6 @@
   
   
   void 
  -XMLFileReporter::logErrorResult(const XalanDOMString& test, const XalanDOMString& reason)
  -{
  -    if (isReady())
  -    {
  -        printToFile(CHECKFAIL_HDR + escapestring(test) + "\" " + XalanDOMString("reason=\"") + escapestring(reason)  + "\"/>");
  -
  -    }
  -}
  -
  -void 
   XMLFileReporter::logCheckFail(const XalanDOMString& test, Hashtable actexp)
   {
       if (isReady())
  @@ -486,6 +462,27 @@
   		printToFile(CHECKFAIL_FTR);
       }
   }
  +
  +void 
  +XMLFileReporter::logCheckAmbiguous(const XalanDOMString& comment)
  +{
  +    if (isReady())
  +    {
  +        printToFile(CHECKAMBG_HDR + escapestring(comment) + "\"/>");
  +    }
  +}
  +
  +
  +void 
  +XMLFileReporter::logErrorResult(const XalanDOMString& test, const XalanDOMString& reason)
  +{
  +    if (isReady())
  +    {
  +        printToFile(CHECKFAIL_HDR + escapestring(test) + "\" " + XalanDOMString("reason=\"") + escapestring(reason)  + "\"/>");
  +
  +    }
  +}
  +
   
   void 
   XMLFileReporter::logCheckErr(const XalanDOMString& comment)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org