You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2007/12/31 18:45:00 UTC

svn commit: r607760 - in /tapestry/tapestry5/trunk/tapestry-core/src/test: java/org/apache/tapestry/corelib/components/ resources/org/apache/tapestry/corelib/components/

Author: hlship
Date: Mon Dec 31 09:44:52 2007
New Revision: 607760

URL: http://svn.apache.org/viewvc?rev=607760&view=rev
Log:
TAPESTRY-1600: Cannot render XML from page templates: XML declaration and namespaces are removed

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.txt
      - copied, changed from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.txt
      - copied, changed from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.txt
      - copied, changed from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.txt
      - copied, changed from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.txt
      - copied, changed from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.txt
      - copied, changed from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.html
Removed:
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.html
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.html
Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/corelib/components/SelectTest.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/corelib/components/SelectTest.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/corelib/components/SelectTest.java?rev=607760&r1=607759&r2=607760&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/corelib/components/SelectTest.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/corelib/components/SelectTest.java Mon Dec 31 09:44:52 2007
@@ -97,7 +97,7 @@
 
         writer.end();
 
-        assertEquals(writer.toString(), read("just_options.html"));
+        assertEquals(writer.toString(), read("just_options.txt"));
     }
 
     @Test
@@ -122,7 +122,7 @@
 
         writer.end();
 
-        assertEquals(writer.toString(), read("option_attributes.html"));
+        assertEquals(writer.toString(), read("option_attributes.txt"));
     }
 
     @Test
@@ -147,7 +147,7 @@
 
         writer.end();
 
-        assertEquals(writer.toString(), read("disabled_option.html"));
+        assertEquals(writer.toString(), read("disabled_option.txt"));
 
     }
 
@@ -174,7 +174,7 @@
 
         writer.end();
 
-        assertEquals(writer.toString(), read("option_groups.html"));
+        assertEquals(writer.toString(), read("option_groups.txt"));
     }
 
     @Test
@@ -198,7 +198,7 @@
 
         writer.end();
 
-        assertEquals(writer.toString(), read("option_groups_precede_ungroup_options.html"));
+        assertEquals(writer.toString(), read("option_groups_precede_ungroup_options.txt"));
     }
 
     @Test
@@ -224,6 +224,6 @@
 
         writer.end();
 
-        assertEquals(writer.toString(), read("option_group_attributes.html"));
+        assertEquals(writer.toString(), read("option_group_attributes.txt"));
     }
 }

Copied: tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.txt (from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.html)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.txt?p2=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.txt&p1=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.html&r1=607501&r2=607760&rev=607760&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.html (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/disabled_option.txt Mon Dec 31 09:44:52 2007
@@ -1,4 +1,2 @@
 <?xml version="1.0"?>
-<select>
-    <option class="pixie" disabled="disabled" value="fred">Fred</option>
-</select>
\ No newline at end of file
+<select><option class="pixie" disabled="disabled" value="fred">Fred</option></select>
\ No newline at end of file

Copied: tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.txt (from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.html)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.txt?p2=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.txt&p1=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.html&r1=607501&r2=607760&rev=607760&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.html (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/just_options.txt Mon Dec 31 09:44:52 2007
@@ -1,5 +1,2 @@
 <?xml version="1.0"?>
-<select>
-    <option value="fred">Fred Flintstone</option>
-    <option selected="selected" value="barney">Barney Rubble</option>
-</select>
\ No newline at end of file
+<select><option value="fred">Fred Flintstone</option><option selected="selected" value="barney">Barney Rubble</option></select>
\ No newline at end of file

Copied: tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.txt (from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.html)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.txt?p2=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.txt&p1=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.html&r1=607501&r2=607760&rev=607760&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.html (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_attributes.txt Mon Dec 31 09:44:52 2007
@@ -1,4 +1,2 @@
 <?xml version="1.0"?>
-<select>
-    <option class="pixie" value="fred">Fred</option>
-</select>
\ No newline at end of file
+<select><option class="pixie" value="fred">Fred</option></select>
\ No newline at end of file

Copied: tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.txt (from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.html)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.txt?p2=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.txt&p1=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.html&r1=607501&r2=607760&rev=607760&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.html (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_group_attributes.txt Mon Dec 31 09:44:52 2007
@@ -1,7 +1,2 @@
 <?xml version="1.0"?>
-<select>
-    <optgroup class="pixie" label="Husbands">
-        <option selected="selected" value="Fred">Fred</option>
-        <option value="Barney">Barney</option>
-    </optgroup>
-</select>
\ No newline at end of file
+<select><optgroup class="pixie" label="Husbands"><option selected="selected" value="Fred">Fred</option><option value="Barney">Barney</option></optgroup></select>
\ No newline at end of file

Copied: tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.txt (from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.html)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.txt?p2=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.txt&p1=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.html&r1=607501&r2=607760&rev=607760&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.html (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups.txt Mon Dec 31 09:44:52 2007
@@ -1,11 +1,2 @@
 <?xml version="1.0"?>
-<select>
-    <optgroup label="Husbands">
-        <option selected="selected" value="Fred">Fred</option>
-        <option value="Barney">Barney</option>
-    </optgroup>
-    <optgroup disabled="disabled" label="Wives">
-        <option value="Wilma">Wilma</option>
-        <option value="Betty">Betty</option>
-    </optgroup>
-</select>
\ No newline at end of file
+<select><optgroup label="Husbands"><option selected="selected" value="Fred">Fred</option><option value="Barney">Barney</option></optgroup><optgroup disabled="disabled" label="Wives"><option value="Wilma">Wilma</option><option value="Betty">Betty</option></optgroup></select>
\ No newline at end of file

Copied: tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.txt (from r607501, tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.html)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.txt?p2=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.txt&p1=tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.html&r1=607501&r2=607760&rev=607760&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.html (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry/corelib/components/option_groups_precede_ungroup_options.txt Mon Dec 31 09:44:52 2007
@@ -1,9 +1,2 @@
 <?xml version="1.0"?>
-<select>
-    <optgroup label="Husbands">
-        <option selected="selected" value="Fred">Fred</option>
-        <option value="Barney">Barney</option>
-    </optgroup>
-    <option value="Wilma">Wilma</option>
-    <option value="Betty">Betty</option>
-</select>
\ No newline at end of file
+<select><optgroup label="Husbands"><option selected="selected" value="Fred">Fred</option><option value="Barney">Barney</option></optgroup><option value="Wilma">Wilma</option><option value="Betty">Betty</option></select>
\ No newline at end of file