You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2008/01/23 11:03:05 UTC

svn commit: r614476 - /incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/JsonRenderingTest.java

Author: bdelacretaz
Date: Wed Jan 23 02:03:04 2008
New Revision: 614476

URL: http://svn.apache.org/viewvc?rev=614476&view=rev
Log:
Add a few more tests to JsonRenderingTest.testEscapedStrings

Modified:
    incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/JsonRenderingTest.java

Modified: incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/JsonRenderingTest.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/JsonRenderingTest.java?rev=614476&r1=614475&r2=614476&view=diff
==============================================================================
--- incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/JsonRenderingTest.java (original)
+++ incubator/sling/trunk/launchpad/launchpad-webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/JsonRenderingTest.java Wed Jan 23 02:03:04 2008
@@ -112,13 +112,18 @@
         props.put("cb", "Some text with {curly brackets}");
         props.put("sb", "Some text with [square brackets]");
         props.put("eol", "Some text with end\nof\nlines\nand\ttabs");
+        props.put("html", "Some text with <body class=\"black\" mode=\'none yet\'/> html-like tags");
+        props.put("bs", "Some text with \\backslashes \\here and \\\"there\"");
         
         final String location = testClient.createNode(postUrl, props);
         final String json = getContent(location + ".json", CONTENT_TYPE_JSON);
         
+        int counter=0;
         for(String key : props.keySet()) {
+            counter++;
             assertJavascript(props.get(key),json,"out.println(data." + key + ")");
         }
+        assertEquals("All tests have been run",counter,props.size());
     }
     
     public void testAccentedStrings() throws IOException {