webwork/src/resources/web/tests iterators.jsp,1.1,1.2

[email protected] Sun, 23 Jun 2002 16:55:47 -0700
Newsgroups gmane.comp.java.webwork.cvs
Message-ID <[email protected]>
Update of /cvsroot/webwork/webwork/src/resources/web/tests
In directory usw-pr-cvs1:/tmp/cvs-serv30664

Modified Files:
	iterators.jsp 
Log Message:
added null tests

Index: iterators.jsp
===================================================================
RCS file: /cvsroot/webwork/webwork/src/resources/web/tests/iterators.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- iterators.jsp	3 Mar 2002 03:47:36 -0000	1.1
+++ iterators.jsp	23 Jun 2002 23:55:45 -0000	1.2
@@ -9,6 +9,34 @@
 
 <webwork:bean name="'webwork.util.Timer'" id="timer"/>
 
+<hr>
+<H1>Testing null iterators and filters</H1>
+Testing null subset. Should be no output and no error but there will be a log statement:<br>
+<iterator:subset source="">
+  <webwork:iterator>
+    <webwork:property/><br>
+  </webwork:iterator>
+</iterator:subset>
+Time:<webwork:property value="@timer/time"/>ms
+<br><br>
+
+Testing null iterator. Should be no output and no error but there will be a log statement:<br>
+<webwork:iterator value="">
+ <webwork:property/><br>
+</webwork:iterator>
+Time:<webwork:property value="@timer/time"/>ms
+<br><br>
+
+Testing null generator. Should be no output and no error but there will be a log statement:<br>
+<iterator:generator val="" count="5" id="xyzzy"/>
+<webwork:iterator value="@xyzzy">
+ <webwork:property/><br>
+</webwork:iterator>
+Time:<webwork:property value="@timer/time"/>ms
+<br><br>
+
+<hr>
+<H1>Testing iterator</H1>
 <webwork:bean name="'webwork.util.Counter'">
   <webwork:param name="'last'" value="10"/>
 
@@ -33,7 +61,7 @@
 </webwork:bean>
 
 Time:<webwork:property value="@timer/time"/>ms
-<br>
+
 Numbers 1-10, start=4:<br>
 <webwork:bean name="'webwork.util.Counter'">
   <webwork:param name="'last'" value="10"/>
@@ -195,6 +223,7 @@
 Time:<webwork:property value="@timer/time"/>ms<br>
 
 <%-- modulus --%>
+
 <p>
 <webwork:bean name="'webwork.util.Counter'">
   <webwork:param name="'last'" value="25"/>
@@ -270,7 +299,6 @@
 <p>
 
 Time:<webwork:property value="@timer/time"/>ms<br>
-
 
 Total time:<webwork:property value="@timer/total"/>ms<br>
 




-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/