Author: markt
Date: Wed Apr 5 07:40:52 2017
New Revision: 1790187
URL: http://svn.apache.org/viewvc?rev=1790187&view=rev
Log:
Add test to confirm behaviour observed when investigating bug 43400
Added:
tomcat/trunk/test/webapp/WEB-INF/tags/bug43400.tag (with props)
tomcat/trunk/test/webapp/bug43nnn/
tomcat/trunk/test/webapp/bug43nnn/bug43400.jsp (with props)
Modified:
tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java
Modified: tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java?rev=1790187&r1=1790186&r2=1790187&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java (original)
+++ tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java Wed Apr 5
07:40:52 2017
@@ -281,4 +281,17 @@ public class TestGenerator extends Tomca
assertTrue(result.startsWith("0 Hello world!\n"));
assertTrue(result.endsWith("999 Hello world!\n"));
}
+
+
+ // https://bz.apache.org/bugzilla/show_bug.cgi?id=43400
+ @Test
+ public void testTagsWithEnums() throws Exception {
+ getTomcatInstanceTestWebapp(false, true);
+
+ ByteChunk res = getUrl("http://localhost:" + getPort() +
"/test/bug43nnn/bug43400.jsp");
+
+ String result = res.toString();
+ System.out.println(result);
+ assertEcho(result, "ASYNC");
+ }
}
Added: tomcat/trunk/test/webapp/WEB-INF/tags/bug43400.tag
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/WEB-INF/tags/bug43400.tag?rev=1790187&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/WEB-INF/tags/bug43400.tag (added)
+++ tomcat/trunk/test/webapp/WEB-INF/tags/bug43400.tag Wed Apr 5 07:40:52 2017
@@ -0,0 +1,18 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%><%@ tag %><%@
+attribute name="type" type="javax.servlet.DispatcherType"%><%@
+tag body-content="empty" %><p>${type}</p>
\ No newline at end of file
Propchange: tomcat/trunk/test/webapp/WEB-INF/tags/bug43400.tag
------------------------------------------------------------------------------
svn:eol-style = native
Added: tomcat/trunk/test/webapp/bug43nnn/bug43400.jsp
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug43nnn/bug43400.jsp?rev=1790187&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug43nnn/bug43400.jsp (added)
+++ tomcat/trunk/test/webapp/bug43nnn/bug43400.jsp Wed Apr 5 07:40:52 2017
@@ -0,0 +1,24 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+<%@ taglib uri="http://tomcat.apache.org/testerFunctions" prefix="fn" %>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<html>
+ <head><title>Bug 46596 test case</title></head>
+ <body>
+ <tags:bug43400 type="ASYNC"/>
+ </body>
+</html>
\ No newline at end of file
Propchange: tomcat/trunk/test/webapp/bug43nnn/bug43400.jsp
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]