You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2011/10/20 01:23:36 UTC

svn commit: r1186565 - /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java

Author: hlship
Date: Wed Oct 19 23:23:35 2011
New Revision: 1186565

URL: http://svn.apache.org/viewvc?rev=1186565&view=rev
Log:
Ok, really fix the DateField XSS test that was broken

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java?rev=1186565&r1=1186564&r2=1186565&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java Wed Oct 19 23:23:35 2011
@@ -241,11 +241,11 @@ public class FormTests extends TapestryC
     {
         openLinks("DateField Demo", "clear", "english");
 
-        type("asteroidImpact", "<script>alert('T5 is great'); </script>");
+        type("asteroidImpact", "<script>alert('T5 is great'); </script>");
 
         click("id=asteroidImpact-trigger");
 
-        assertBubbleMessage("asteroidImpact", "Unparseable date: \"<script>alert('T5 is great'); </script>\"");
+        assertBubbleMessage("asteroidImpact", "Unparseable date: \"&lt;script&gt;alert('T5 is great'); &lt;/script&gt;\"");
     }
 
     // TAP5-1409