From: kkolinko Date: Thu, 4 Feb 2010 12:16:51 +0000 (+0000) Subject: Test for a bug with processing of double quotes in AttributeParser#parseEL X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0e014bebecacada0ab17dfab9b0592d78598d599;p=tomcat7.0 Test for a bug with processing of double quotes in AttributeParser#parseEL git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@906464 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/el/TestELInJsp.java b/test/org/apache/el/TestELInJsp.java index 5b84f00a1..3bb8c352f 100644 --- a/test/org/apache/el/TestELInJsp.java +++ b/test/org/apache/el/TestELInJsp.java @@ -322,6 +322,7 @@ public class TestELInJsp extends TomcatBaseTest { ByteChunk res = getUrl("http://localhost:" + getPort() + "/test/el-misc.jsp"); String result = res.toString(); + System.out.println(result); assertEcho(result, "00-\\\\\\\"${'hello world'}"); assertEcho(result, "01-\\\\\\\"\\${'hello world'}"); assertEcho(result, "02-\\\"${'hello world'}"); @@ -334,6 +335,12 @@ public class TestELInJsp extends TomcatBaseTest { assertEcho(result, "09-az2"); assertEcho(result, "10-${'foo'}bar"); assertEcho(result, "11-\"}"); + assertEcho(result, "12-foo\\bar\\baz"); + assertEcho(result, "13-foo\\bar\\baz"); + assertEcho(result, "14-foo\\bar\\baz"); + assertEcho(result, "15-foo\\bar\\baz"); + assertEcho(result, "16-foo\\bar\\baz"); + assertEcho(result, "17-foo\\bar\\baz"); } public void testScriptingExpression() throws Exception { diff --git a/test/webapp/el-misc.jsp b/test/webapp/el-misc.jsp index 8e56e9692..053252bac 100644 --- a/test/webapp/el-misc.jsp +++ b/test/webapp/el-misc.jsp @@ -30,5 +30,11 @@ + + + + + + \ No newline at end of file