incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r605918 - in /incubator/sling/trunk/microsling/microsling-core/src/test: java/org/apache/sling/microsling/integration/SlingResourceTypeRenderingTest.java resources/integration-test/rendering-test.esp
Date Thu, 20 Dec 2007 13:22:59 GMT
Author: bdelacretaz
Date: Thu Dec 20 05:22:57 2007
New Revision: 605918

URL: http://svn.apache.org/viewvc?rev=605918&view=rev
Log:
SLING-142 - add a compact attribute syntax example to the esp test/example

Modified:
    incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SlingResourceTypeRenderingTest.java
    incubator/sling/trunk/microsling/microsling-core/src/test/resources/integration-test/rendering-test.esp

Modified: incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SlingResourceTypeRenderingTest.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SlingResourceTypeRenderingTest.java?rev=605918&r1=605917&r2=605918&view=diff
==============================================================================
--- incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SlingResourceTypeRenderingTest.java
(original)
+++ incubator/sling/trunk/microsling/microsling-core/src/test/java/org/apache/sling/microsling/integration/SlingResourceTypeRenderingTest.java
Thu Dec 20 05:22:57 2007
@@ -66,6 +66,8 @@
             final String content = getContent(displayUrl + ".html", CONTENT_TYPE_HTML);
             assertTrue("Content includes ESP marker",content.contains("ESP template"));
             assertTrue("Content contains formatted test text",content.contains("<p>"
+ testText + "</p>"));
+            assertTrue("Content (" + content + ") contains attribute generated with simplified
syntax",
+                    content.contains("<div class=\"SLING-142\" id=\"22\"/>"));
         } finally {
             testClient.delete(toDelete);
         }

Modified: incubator/sling/trunk/microsling/microsling-core/src/test/resources/integration-test/rendering-test.esp
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/microsling/microsling-core/src/test/resources/integration-test/rendering-test.esp?rev=605918&r1=605917&r2=605918&view=diff
==============================================================================
--- incubator/sling/trunk/microsling/microsling-core/src/test/resources/integration-test/rendering-test.esp
(original)
+++ incubator/sling/trunk/microsling/microsling-core/src/test/resources/integration-test/rendering-test.esp
Thu Dec 20 05:22:57 2007
@@ -3,12 +3,16 @@
 	<body>
 		ESP template
 		<p><%= resource.node.text %></p>
-	</body>
 	
-	<!-- test access to microsling java classes -->
-	<%
-		var list = new Packages.java.util.LinkedList();
-		list.add("LinkedListTest");
-	%>
-	<p>Test<%= list.get(0) %></p>
+		<!-- test SLING-142, compact syntax -->
+		<div class="SLING-142" id="${'2' + '2'}"/>
+	
+		<!-- test access to microsling java classes -->
+		<%
+			var list = new Packages.java.util.LinkedList();
+			list.add("LinkedListTest");
+		%>
+		<p>Test<%= list.get(0) %></p>
+
+	</body>
 </html>



Mime
View raw message