You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2018/04/17 15:05:29 UTC

[sling-org-apache-sling-scripting-sightly-testing] branch issue/SLING-7589 created (now 8676281)

This is an automated email from the ASF dual-hosted git repository.

radu pushed a change to branch issue/SLING-7589
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-testing.git.


      at 8676281  SLING-7589 - HTL doesn't correctly handle synthetic resource inclusions

This branch includes the following new commits:

     new 8676281  SLING-7589 - HTL doesn't correctly handle synthetic resource inclusions

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
radu@apache.org.

[sling-org-apache-sling-scripting-sightly-testing] 01/01: SLING-7589 - HTL doesn't correctly handle synthetic resource inclusions

Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

radu pushed a commit to branch issue/SLING-7589
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-testing.git

commit 86762814992673fc3907399cc6b12638886bc654
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Tue Apr 17 17:04:45 2018 +0200

    SLING-7589 - HTL doesn't correctly handle synthetic resource inclusions
    
    * added test
---
 .../sling/scripting/sightly/it/SlingSpecificsSightlyIT.java       | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/test/java/org/apache/sling/scripting/sightly/it/SlingSpecificsSightlyIT.java b/src/test/java/org/apache/sling/scripting/sightly/it/SlingSpecificsSightlyIT.java
index f7d49fd..979f2ef 100644
--- a/src/test/java/org/apache/sling/scripting/sightly/it/SlingSpecificsSightlyIT.java
+++ b/src/test/java/org/apache/sling/scripting/sightly/it/SlingSpecificsSightlyIT.java
@@ -64,6 +64,7 @@ public class SlingSpecificsSightlyIT {
     private static final String SLING_I18N = "/sightly/i18n";
     private static final String TCK_XSS = "/sightlytck/exprlang/xss.html";
     private static final String WHITESPACE = "/sightly/whitespace.html";
+    private static final String SYNTHETIC_RESOURCE = "/sightly/synthetic-resource.html";
 
     @BeforeClass
     public static void init() {
@@ -358,6 +359,13 @@ public class SlingSpecificsSightlyIT {
         assertEquals("true", HTMLExtractor.innerHTML(url, pageContent, "#newline"));
     }
 
+    @Test
+    public void testSyntheticResourceResolution() {
+        String url = launchpadURL + SYNTHETIC_RESOURCE;
+        String pageContent = client.getStringContent(url, 200);
+        assertEquals("It works!", HTMLExtractor.innerHTML(url, pageContent, "#synthetic-resource-selector"));
+    }
+
     private void restartSightlyEngineBundle() throws InterruptedException, IOException {
         HttpClient httpClient = HttpClientBuilder.create().build();
         HttpPost post = new HttpPost(launchpadURL + "/system/console/bundles/org.apache.sling.scripting.sightly");

-- 
To stop receiving notification emails like this one, please contact
radu@apache.org.