Author: markt Date: Sun Jan 10 11:37:16 2010 New Revision: 897619 URL: http://svn.apache.org/viewvc?rev=897619&view=rev Log: Add a test case for bug36923
Added: tomcat/trunk/test/webapp/bug36923.jsp (with props) Modified: tomcat/trunk/test/org/apache/el/TestELInJsp.java Modified: tomcat/trunk/test/org/apache/el/TestELInJsp.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/el/TestELInJsp.java?rev=897619&r1=897618&r2=897619&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/el/TestELInJsp.java (original) +++ tomcat/trunk/test/org/apache/el/TestELInJsp.java Sun Jan 10 11:37:16 2010 @@ -30,6 +30,22 @@ */ public class TestELInJsp extends TomcatBaseTest { + public void testBug36923() throws Exception { + Tomcat tomcat = getTomcatInstance(); + + File appDir = new File("test/webapp"); + // app dir is relative to server home + tomcat.addWebapp(null, "/test", appDir.getAbsolutePath()); + + tomcat.start(); + + ByteChunk res = getUrl("http://localhost:" + getPort() + + "/test/bug36923.jsp"); + + String result = res.toString(); + assertTrue(result.indexOf("00-${hello world}") > 0); + } + public void testBug42565() throws Exception { Tomcat tomcat = getTomcatInstance(); Added: tomcat/trunk/test/webapp/bug36923.jsp URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug36923.jsp?rev=897619&view=auto ============================================================================== --- tomcat/trunk/test/webapp/bug36923.jsp (added) +++ tomcat/trunk/test/webapp/bug36923.jsp Sun Jan 10 11:37:16 2010 @@ -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. +--%> +<%@ page isELIgnored="true" %> +<html> + <head><title>Bug 44994 test case</title></head> + <body> + <p>00-${<%= "hello world" %>}</p> + </body> +</html> + Propchange: tomcat/trunk/test/webapp/bug36923.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tomcat/trunk/test/webapp/bug36923.jsp ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org