CVS: Tapestry/junit/src/net/sf/tapestry/junit/mock TestRegisterForm.xml,1.4,1.5
Howard Lewis Ship <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/Tapestry/junit/src/net/sf/tapestry/junit/mock
In directory sc8-pr-cvs1:/tmp/cvs-serv24971/junit/src/net/sf/tapestry/junit/mock
Modified Files:
TestRegisterForm.xml
Log Message:
Simplify tests so that they work on both JDK 1.3 and 1.4.
Apparently there is a difference in HashMap ordering between the two JVMs.
Index: TestRegisterForm.xml
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/junit/src/net/sf/tapestry/junit/mock/TestRegisterForm.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TestRegisterForm.xml 23 Oct 2002 14:29:00 -0000 1.4
--- TestRegisterForm.xml 10 Dec 2002 18:54:43 -0000 1.5
***************
*** 158,166 ****
<!-- This can be tricky, the order in which the maxlength and size attributes
! are emitted appears to be somewhat unpredictable. -->
<assert-output name="First Name">
<![CDATA[
! <input type="text" name="inputFirstName" value="Suzy" maxlength="100" size="40"/>
]]>
</assert-output>
--- 158,168 ----
<!-- This can be tricky, the order in which the maxlength and size attributes
! are emitted appears to be somewhat unpredictable between JDKs.
! We'll need to add alternate tests to check that the values
! are generated properly.. -->
<assert-output name="First Name">
<![CDATA[
! <input type="text" name="inputFirstName" value="Suzy"(.*?)"/>
]]>
</assert-output>
***************
*** 168,172 ****
<assert-output name="Last Name">
<![CDATA[
! <input type="text" name="inputLastName" maxlength="100" size="40"/> <font color="red">\*\*</font>
]]>
</assert-output>
--- 170,174 ----
<assert-output name="Last Name">
<![CDATA[
! <input type="text" name="inputLastName"(.*?)/> <font color="red">\*\*</font>
]]>
</assert-output>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf