You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by mi...@apache.org on 2003/10/19 23:31:54 UTC

cvs commit: jakarta-tapestry/junit/mock-scripts TestValidFieldNoBody.xml TestListenerBinding.xml

mindbridge    2003/10/19 14:31:54

  Modified:    junit/context28/WEB-INF Charset_es.html
               junit/src/org/apache/tapestry/junit/parse
                        TestSpecificationParser.java
               junit/mock-scripts TestValidFieldNoBody.xml
                        TestListenerBinding.xml
  Log:
  PR: 20252 tests failing under JDK 1.3  by Richard Lewis-Shell
  
  Applying some minor fixes and slightly relaxing some of the 
  junit test requirements so that they can work correctly 
  with varying library implementations.
  
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-tapestry/junit/context28/WEB-INF/Charset_es.html
  
  	<<Binary file>>
  
  
  1.11      +4 -2      jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/TestSpecificationParser.java
  
  Index: TestSpecificationParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/TestSpecificationParser.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TestSpecificationParser.java	1 Jun 2003 05:05:06 -0000	1.10
  +++ TestSpecificationParser.java	19 Oct 2003 21:31:54 -0000	1.11
  @@ -366,7 +366,9 @@
           }
           catch (DocumentParseException ex)
           {
  -            checkException(ex, "Valid documents must have a <!DOCTYPE declaration.");
  +            // XML parsers tend to generate different exception messages, 
  +            // so make the condition as unspecific as possible
  +            checkException(ex, "DOCTYPE");
           }
       }
   
  
  
  
  1.3       +2 -2      jakarta-tapestry/junit/mock-scripts/TestValidFieldNoBody.xml
  
  Index: TestValidFieldNoBody.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/mock-scripts/TestValidFieldNoBody.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestValidFieldNoBody.xml	18 Mar 2003 20:55:29 -0000	1.2
  +++ TestValidFieldNoBody.xml	19 Oct 2003 21:31:54 -0000	1.3
  @@ -27,7 +27,7 @@
   		</assert-output>
   	
   		<assert-output name="Message">
  -		A ValidField using client-side validation must be wrapped by a Body component.
  +		A ValidField using client-side validation must be enclosed by a Body component.
   		</assert-output>
   	
   	</request>
  
  
  
  1.4       +13 -5     jakarta-tapestry/junit/mock-scripts/TestListenerBinding.xml
  
  Index: TestListenerBinding.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/mock-scripts/TestListenerBinding.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestListenerBinding.xml	18 Mar 2003 20:55:29 -0000	1.3
  +++ TestListenerBinding.xml	19 Oct 2003 21:31:54 -0000	1.4
  @@ -95,8 +95,12 @@
   ]]>
   		</assert-output>
   		
  -		<assert-output name="Invalid Script Error Message">
  -		Unable to execute listener script "context:/WEB-INF/Two.page, line 18": exception from Jython
  +		<assert-output name="Invalid Script Error Message part 1">
  +		Unable to execute listener script "context:/WEB-INF/Two.page, line 18
  +		</assert-output>		
  +
  +		<assert-output name="Invalid Script Error Message part 2">
  +		exception from Jython
   		</assert-output>		
   	</request>
   
  @@ -111,8 +115,12 @@
   ]]>
   		</assert-output>
   		
  -		<assert-output name="Unknown Language Error Message">
  -			Unable to execute listener script "context:/WEB-INF/Two.page, line 28": unsupported language: DoesNotExist
  +		<assert-output name="Unknown Language Error Message part 1">
  +			Unable to execute listener script "context:/WEB-INF/Two.page, line 28
  +		</assert-output>		
  +
  +		<assert-output name="Unknown Language Error Message part 2">
  +			unsupported language: DoesNotExist
   		</assert-output>		
   	</request>
   			  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org