This is an automated email from the ASF dual-hosted git repository. adelbene pushed a commit to branch wicket-9.x in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/wicket-9.x by this push: new 80b1fcb9cc WICKET-7054 added test case 80b1fcb9cc is described below commit 80b1fcb9ccfd2f1d55343f38d300bf0234c977c4 Author: Andrea Del Bene <adelb...@apache.org> AuthorDate: Wed May 10 18:27:58 2023 +0200 WICKET-7054 added test case --- .../markup/parser/filter/PageWithScriptTemplate.html | 12 ++++++++++++ .../filter/PageWithScriptTemplate_expected.html | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/PageWithScriptTemplate.html b/wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/PageWithScriptTemplate.html index ef7d1b652e..f11e13f9d9 100644 --- a/wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/PageWithScriptTemplate.html +++ b/wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/PageWithScriptTemplate.html @@ -29,5 +29,17 @@ alert(document.getElementById("script1").innerHTML); /*]]>*/</script> <script type="text/javascript">console.log('Nice')</script> + +<script type="module">console.log('module type')</script> + +<script type="importmap"> + { + "imports": { + "square": "./module/shapes/square.js", + "circle": "https://example.com/shapes/circle.js" + } + } +</script> + </body> </html> diff --git a/wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/PageWithScriptTemplate_expected.html b/wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/PageWithScriptTemplate_expected.html index b68cb504c3..62e46d4537 100644 --- a/wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/PageWithScriptTemplate_expected.html +++ b/wicket-core/src/test/java/org/apache/wicket/markup/parser/filter/PageWithScriptTemplate_expected.html @@ -33,5 +33,25 @@ alert(document.getElementById("script1").innerHTML); console.log('Nice') /*]]>*/ </script> + +<script type="module"> +/*<![CDATA[*/ +console.log('module type') +/*]]>*/ +</script> + +<script type="importmap"> +/*<![CDATA[*/ + + { + "imports": { + "square": "./module/shapes/square.js", + "circle": "https://example.com/shapes/circle.js" + } + } + +/*]]>*/ +</script> + </body> </html>