jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davidson, Misha" <MDavid...@silverstream.com>
Subject couple more bugs in the test
Date Mon, 07 Aug 2000 17:24:35 GMT
Hi, 

Thank you for fixing the bin build access on the Web. 

I ran the latest build (0807) of the test and found a couple of problems
that
I did not notice before. Here they are:


Problem #1
=========

/jsp-tests/jsp/engine/PageContext/positiveInclude.jsp expects an output
that is out of order. 
That is the included page shows up at the top of the output, while it is
included in the middle 
of the top level page. Here's the expected output. 


<html> 

<title>forward</title> 

<body> 

SUCCESS



</body> 

</html><html> 

<title>positiveInclude</title> 

<body>



<!-- this is to test if include() method works --> 

<!-- using pageContext object to include -->







</body> 

</html>




It does not match the source: 


<html> 

<title>positiveInclude</title> 

<body> 

<% 

/* 

 Name : positiveInclude 

*/ 

%> 

<!-- this is to test if include() method works --> 

<!-- using pageContext object to include --> 

<% 

try{ 

    pageContext.include("forward.jsp"); 

    }catch(Exception e){ 

    out.println(e); 

} 

%>





</body> 

</html>








Problem #2
===========

/jsp-tests/jsp/engine/JspWriter/misc/positiveGetRemaining.jsp seems to
return an incorrect 
count of the remaining buffer size. The test expects "4939" as in 


<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>




However, if you count the characters that proceed "got=" in the "golden"
file, 
you will find that that number is 173. We know that the buffer size is 
        5kb = 5120b. 
Therefore the remaining size should be 
        5120 - 173 = 4947
not 4939 as specified in the golden file. 


Please let me know if this makes sense or if I misunderstood
something...

Thanks,
-Misha



Mime
View raw message