ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r740025 - in /ant/core/trunk/src/tests/antunit/taskdefs: xslt-test.xml xslt/ xslt/printParams-invalid.xsl
Date Mon, 02 Feb 2009 16:32:02 GMT
Author: bodewig
Date: Mon Feb  2 16:32:01 2009
New Revision: 740025

URL: http://svn.apache.org/viewvc?rev=740025&view=rev
Log:
Use a real transformation error instead of an XML parsing error in testTransformationError

Added:
    ant/core/trunk/src/tests/antunit/taskdefs/xslt/
    ant/core/trunk/src/tests/antunit/taskdefs/xslt/printParams-invalid.xsl   (contents, props
changed)
      - copied, changed from r739941, ant/core/trunk/src/etc/testcases/taskdefs/style/printParams.xsl
Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/xslt-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/xslt-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/xslt-test.xml?rev=740025&r1=740024&r2=740025&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/xslt-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/xslt-test.xml Mon Feb  2 16:32:01 2009
@@ -93,17 +93,17 @@
 
   <target name="testTransformationError" depends="setUp">
     <au:expectfailure expectedmessage="Fatal error during transformation">
-      <xslt in="${legacy.dir}/../input.stdin"
+      <xslt in="${legacy.dir}/data.xml"
             out="${output}/out.xml"
-            style="${legacy.dir}/printParams.xsl"
+            style="xslt/printParams-invalid.xsl"
             />
     </au:expectfailure>
   </target>
 
   <target name="testTransformationErrorNoFail" depends="setUp">
-    <xslt in="${legacy.dir}/../input.stdin"
+    <xslt in="${legacy.dir}/data.xml"
           out="${output}/out.xml"
-          style="${legacy.dir}/printParams.xsl"
+          style="xslt/printParams-invalid.xsl"
           failOnError="false"/>
     <au:assertFileDoesntExist file="${output}/out.xml"/>
   </target>

Copied: ant/core/trunk/src/tests/antunit/taskdefs/xslt/printParams-invalid.xsl (from r739941,
ant/core/trunk/src/etc/testcases/taskdefs/style/printParams.xsl)
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/xslt/printParams-invalid.xsl?p2=ant/core/trunk/src/tests/antunit/taskdefs/xslt/printParams-invalid.xsl&p1=ant/core/trunk/src/etc/testcases/taskdefs/style/printParams.xsl&r1=739941&r2=740025&rev=740025&view=diff
==============================================================================
--- ant/core/trunk/src/etc/testcases/taskdefs/style/printParams.xsl (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/xslt/printParams-invalid.xsl Mon Feb  2 16:32:01
2009
@@ -27,7 +27,7 @@
 <xsl:param name="undefined">undefined default value</xsl:param>
 
 <!-- use the xsl-parameter -->
-<xsl:template match="/">
+<xsl:template match="'">
 set='<xsl:value-of select="$set"/>'
 empty='<xsl:value-of select="$empty"/>'
 undefined='<xsl:value-of select="$undefined"/>'

Propchange: ant/core/trunk/src/tests/antunit/taskdefs/xslt/printParams-invalid.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ant/core/trunk/src/tests/antunit/taskdefs/xslt/printParams-invalid.xsl
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: ant/core/trunk/src/tests/antunit/taskdefs/xslt/printParams-invalid.xsl
------------------------------------------------------------------------------
    svn:mergeinfo = 



Mime
View raw message