WICKET-6036: testcase demonstrating the problem

Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/95cb7632
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/95cb7632
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/95cb7632

Branch: refs/heads/lambdas
Commit: 95cb76329a5fe1665e65b9f2dfa9af3a45f50769
Parents: d2de2c0
Author: Emond Papegaaij <[email protected]>
Authored: Tue Nov 17 08:38:00 2015 +0100
Committer: Emond Papegaaij <[email protected]>
Committed: Tue Nov 17 08:38:55 2015 +0100

----------------------------------------------------------------------
 .../ComponentQueueingCompatibilityTest.java     | 32 ++++++++++++++++++++
 .../wicket/queueing/IncorrectCloseTagPanel.html |  7 +++++
 .../wicket/queueing/IncorrectCloseTagPanel.java | 15 +++++++++
 3 files changed, 54 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/95cb7632/wicket-core/src/test/java/org/apache/wicket/queueing/ComponentQueueingCompatibilityTest.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/test/java/org/apache/wicket/queueing/ComponentQueueingCompatibilityTest.java
 
b/wicket-core/src/test/java/org/apache/wicket/queueing/ComponentQueueingCompatibilityTest.java
new file mode 100644
index 0000000..254e951
--- /dev/null
+++ 
b/wicket-core/src/test/java/org/apache/wicket/queueing/ComponentQueueingCompatibilityTest.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.queueing;
+
+import org.apache.wicket.util.tester.WicketTestCase;
+import org.junit.Ignore;
+import org.junit.Test;
+
+public class ComponentQueueingCompatibilityTest extends WicketTestCase
+{
+       @Test
+       @Ignore("WICKET-6036")
+       public void nestedTags()
+       {
+               IncorrectCloseTagPanel p = new IncorrectCloseTagPanel("test");
+               tester.startComponentInPage(p);
+       }
+}

http://git-wip-us.apache.org/repos/asf/wicket/blob/95cb7632/wicket-core/src/test/java/org/apache/wicket/queueing/IncorrectCloseTagPanel.html
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/test/java/org/apache/wicket/queueing/IncorrectCloseTagPanel.html
 
b/wicket-core/src/test/java/org/apache/wicket/queueing/IncorrectCloseTagPanel.html
new file mode 100644
index 0000000..b9a3d62
--- /dev/null
+++ 
b/wicket-core/src/test/java/org/apache/wicket/queueing/IncorrectCloseTagPanel.html
@@ -0,0 +1,7 @@
+<html xmlns:wicket>
+<body>
+<wicket:panel>
+       <span wicket:id="test"> test <img src="img.png" /></span>
+</wicket:panel>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/wicket/blob/95cb7632/wicket-core/src/test/java/org/apache/wicket/queueing/IncorrectCloseTagPanel.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/test/java/org/apache/wicket/queueing/IncorrectCloseTagPanel.java
 
b/wicket-core/src/test/java/org/apache/wicket/queueing/IncorrectCloseTagPanel.java
new file mode 100644
index 0000000..db19114
--- /dev/null
+++ 
b/wicket-core/src/test/java/org/apache/wicket/queueing/IncorrectCloseTagPanel.java
@@ -0,0 +1,15 @@
+package org.apache.wicket.queueing;
+
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.panel.Panel;
+
+public class IncorrectCloseTagPanel extends Panel
+{
+       private static final long serialVersionUID = 1L;
+
+       public IncorrectCloseTagPanel(String id)
+       {
+               super(id);
+               add(new Label("test", " test <img src=\"img.png\" 
/>").setEscapeModelStrings(false));
+       }
+}

Reply via email to