You are viewing a plain text version of this content. The canonical link for it is here.
Posted to watchdog-dev@jakarta.apache.org by sa...@locus.apache.org on 2000/10/04 02:27:39 UTC

cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagData positiveTagGetAttribute.jsp positiveTagGetAttributeString.jsp positiveTagSetAttribute.jsp

santosh     00/10/03 17:27:39

  Added:       src/server/jsp-tests/jsp/tagext/TagData
                        positiveTagGetAttribute.jsp
                        positiveTagGetAttributeString.jsp
                        positiveTagSetAttribute.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagData/positiveTagGetAttribute.jsp
  
  Index: positiveTagGetAttribute.jsp
  ===================================================================
  <html>
  <title>positiveTagGetAttribute</title>
  <body>
  <% 
  	/** 	
  	Name : positiveTagGetAttribute
  	Description : Create a TagData object by passing a hashtable.
  	              Print the contents of the hashtable using the 
  	              getAttribute() method of TagData.
  	Result :    The contents should be printed.
  	**/  
  %>	 
  
  <%
  	java.util.Hashtable ht = new java.util.Hashtable();
  	ht.put("Color1","red");
  	ht.put("Color2","green");
  	ht.put("Color3","yellow");
  	ht.put("Color4","orange");
  
  	TagData td = new TagData(ht);
  
  	for(int i=1;i<=4;i++) {
  		out.println("Colors are  " + td.getAttribute("Color"+i));
  
  %> 
  <br> <% }
  %>
  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagData/positiveTagGetAttributeString.jsp
  
  Index: positiveTagGetAttributeString.jsp
  ===================================================================
  <html>
  <title>positiveTagGetAttributeString</title>
  <body>
  <% 
  	/** 	
  	Name : positiveTagGetAttributeString
  	Description : Create a TagData object by passing a hashtable
  	              Using setAttribute() method set the attributes.
  	              Check using the getAttributeString() .
  	Result :     Should print the contents that are set.
  	**/  
  %>	
  <%
  
  	java.util.Hashtable ht = new java.util.Hashtable();
  	TagData td = new TagData(ht);
  	
  	td.setAttribute("Color1","red");
  	td.setAttribute("Color2","green");
  	td.setAttribute("Color3","yellow");
  	td.setAttribute("Color4","orange");
  
  	for(int i=1;i<=4;i++) {
  		out.println("Colors are  " + td.getAttributeString("Color"+i));
  
  %> 
  <br> <% }
  %>
  
  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagData/positiveTagSetAttribute.jsp
  
  Index: positiveTagSetAttribute.jsp
  ===================================================================
  <html>
  <title>positiveTagSetAttribute</title>
  <body>
  <% 
  	/** 	
  	Name : positiveTagSetAttribute
  	Description : Create a TagData object by passing a hashtable
  	              created using the setAttribute() method of
  	              TagData.Call the getAttribute() method and print 
  	              the contents.
  	Result :      The contents set should be printed.
  	**/  
  %>	
  <%
  
  	java.util.Hashtable ht = new java.util.Hashtable();
  	TagData td = new TagData(ht);
  	
  	td.setAttribute("Color1","red");
  	td.setAttribute("Color2","green");
  	td.setAttribute("Color3","yellow");
  	td.setAttribute("Color4","orange");
  
  	for(int i=1;i<=4;i++) {
  		out.println("Colors are  " + td.getAttribute("Color"+i));
  
  %> 
  <br> <% }
  %>
  </body>
  </html>
  
  

Re: /jsp-tests/jsp/engine/JspWriter/misc/positiveGetRemaining.jsp

Posted by Julien Adler <ja...@secant.com>.
We have looked at the output and determined that our ("Got") output is 
correct and that the "golden" file is wrong. The buffer starts with 5120 
bytes and at the point of the getRemaining() call the following 173 bytes 
have been output:

====================Expecting:
<html>
<title>positiveGetRemaining</title>
<body>

<!-- this is to test if getRemaining method works with no buffer-->
<!-- setting buffer size to 5kb using directive -->


got=4939
<!-- expected to return remaining buffer size -->
</body>
</html>


====================Got:
<html>
<title>positiveGetRemaining</title>
<body>

<!-- this is to test if getRemaining method works with no buffer-->
<!-- setting buffer size to 5kb using directive -->


got=4947
<!-- expected to return remaining buffer size -->
</body>
</html>