niallp 2004/07/21 15:34:09 Modified: src/test/org/apache/struts/taglib/html TestFormTag1.java web/test/test/org/apache/struts/taglib/html TestFormTag1.jsp Log: Add Test Case for FormTag accept-charset attribute Revision Changes Path 1.9 +6 -3 jakarta-struts/src/test/org/apache/struts/taglib/html/TestFormTag1.java Index: TestFormTag1.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/test/org/apache/struts/taglib/html/TestFormTag1.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- TestFormTag1.java 14 Mar 2004 06:23:41 -0000 1.8 +++ TestFormTag1.java 21 Jul 2004 22:34:09 -0000 1.9 @@ -79,6 +79,9 @@ public void testFormActionEnctype() throws Exception { runMyTest("testFormActionEnctype", ""); } + public void testFormActionAcceptCharset() throws Exception { + runMyTest("testFormActionAcceptCharset", ""); + } public void testFormActionFocus() throws Exception { runMyTest("testFormActionFocus", ""); } 1.5 +10 -0 jakarta-struts/web/test/test/org/apache/struts/taglib/html/TestFormTag1.jsp Index: TestFormTag1.jsp =================================================================== RCS file: /home/cvs/jakarta-struts/web/test/test/org/apache/struts/taglib/html/TestFormTag1.jsp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- TestFormTag1.jsp 26 Dec 2003 22:08:01 -0000 1.4 +++ TestFormTag1.jsp 21 Jul 2004 22:34:09 -0000 1.5 @@ -28,6 +28,16 @@ </bean:define> </logic:equal> +<logic:equal name="runTest" value="testFormActionAcceptCharset"> + <bean:define id="TEST_RESULTS" toScope="page"> + <html:form action="/testFormTag" acceptCharset="UTF-8"> + </html:form> + </bean:define> + <bean:define id="EXPECTED_RESULTS" toScope="page"> + <form name="testFormBean" method="post" action="<%=response.encodeURL( request.getContextPath() + "/testFormTag.do")%>" accept-charset="UTF-8"> + </form> + </bean:define> +</logic:equal> <logic:equal name="runTest" value="testFormActionFocus"> <bean:define id="TEST_RESULTS" toScope="page">
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]