Author: jcompagner
Date: Sun May 13 12:28:55 2007
New Revision: 537646

URL: http://svn.apache.org/viewvc?view=rev&rev=537646
Log:
some extra test: The <html> tag seems to be the only case where you shouldn't 
add childs even if it is a child!

Added:
    
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_14.html
   (with props)
    
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.html
   (with props)
    
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.java
   (with props)
Modified:
    
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageTest.java

Added: 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_14.html
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_14.html?view=auto&rev=537646
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_14.html
 (added)
+++ 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_14.html
 Sun May 13 12:28:55 2007
@@ -0,0 +1,8 @@
+<? xml version= "1.0" encoding ="UTF-8" ?>
+<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+
+<html lang="de" wicket:id="html" xmlns:wicket="" 
xmlns="http://www.w3.org/1999/xhtml"; xmlns:lang="[current language]">
+  <body>
+  <span wicket:id="label">label</span>
+  </body>
+</html> 
\ No newline at end of file

Propchange: 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_14.html
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageTest.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageTest.java?view=diff&rev=537646&r1=537645&r2=537646
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageTest.java
 (original)
+++ 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageTest.java
 Sun May 13 12:28:55 2007
@@ -400,4 +400,13 @@
        {
                executeTest(SimplePage_13.class, 
"SimplePageExpectedResult_13.html");
        }
+       
+       /**
+        * @throws Exception
+        */
+       public void testRenderHomePage_14() throws Exception
+       {
+               executeTest(SimplePage_14.class, 
"SimplePageExpectedResult_14.html");
+       }
+
 }

Added: 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.html
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.html?view=auto&rev=537646
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.html
 (added)
+++ 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.html
 Sun May 13 12:28:55 2007
@@ -0,0 +1,8 @@
+<? xml version= "1.0" encoding ="UTF-8" ?>
+<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+
+<html wicket:id="html" xmlns:wicket xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:lang="[current language]" lang="[current language]">
+  <body>
+  <span wicket:id="label">text here</span>
+  </body>
+</html> 
\ No newline at end of file

Propchange: 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.java?view=auto&rev=537646
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.java
 (added)
+++ 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.java
 Sun May 13 12:28:55 2007
@@ -0,0 +1,46 @@
+/*
+ * 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.markup.html.basic;
+
+import org.apache.wicket.AttributeModifier;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.model.Model;
+
+
+/**
+ * Wicket component attached to &lt;html&gt; tag
+ * 
+ * @author Juergen Donnerstag
+ */
+public class SimplePage_14 extends WebPage
+{
+       private static final long serialVersionUID = 1L;
+
+       /**
+        * Construct.
+        */
+       public SimplePage_14()
+       {
+               WebMarkupContainer container = new WebMarkupContainer("html");
+               container.add(new AttributeModifier("lang", new Model("de")));
+               //THIS doesn't work.. but in the markup it is child!
+               //container.add(new Label("label","label")); 
+               add(new Label("label","label"));
+               add(container);
+       }
+}

Propchange: 
incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_14.java
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to