ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r537333 - /ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml
Date Sat, 12 May 2007 04:31:44 GMT
Author: kevj
Date: Fri May 11 21:31:40 2007
New Revision: 537333

URL: http://svn.apache.org/viewvc?view=rev&rev=537333
Log:
-remove whitespace, use antunit-base.xml

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml?view=diff&rev=537333&r1=537332&r2=537333
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/optional/script/scriptdef-test.xml Fri May 11
21:31:40 2007
@@ -1,17 +1,12 @@
-<project default="test" xmlns:au="antlib:org.apache.ant.antunit">
+<project default="antunit" xmlns:au="antlib:org.apache.ant.antunit">
 
+  <import file="../../../antunit-base.xml"/>	
+	
   <description>
     In which we test interesting aspects of scripting.
     The targeted language is javascript; this lets us run without
     additions on Java6+.
   </description>
-
-  <target name="test">
-    <au:antunit>
-      <fileset file="${ant.file}"/>
-      <au:plainlistener/>
-    </au:antunit>
-  </target>
   
   <target name="tearDown">
   </target>
@@ -34,7 +29,6 @@
   <property name="prop"
       value='self.log("Ant version =${ant.version}");project.setNewProperty("property","live");'
/>
 
-
   <presetdef name="assertPropSet">
     <au:assertPropertyEquals name="property" value="live" />
   </presetdef>
@@ -42,22 +36,19 @@
 
   <!--purely to test that everything works -->
   <target name="testInline">
-    <js > self.log("Hello");</js>
+    <js>self.log("Hello");</js>
     <scripttest/>
   </target>
 
-
   <target name="testStringResource">
-    <js >
+    <js>
       <string value='self.log("Ant version =${ant.version}");' />
     </js>
     <scripttest/>
   </target>
 
-
-
   <target name="testStringResourceRef">
-    <js >
+    <js>
       <string refid="script.code" />
     </js>
     <scripttest/>
@@ -65,27 +56,26 @@
   </target>
 
   <target name="testStringResourceInline">
-    <js >
-      <string >
+    <js>
+      <string>
         self.log("Ant version =${ant.version}");
         project.setNewProperty("property","live");
       </string>
     </js>
     <scripttest/>
-    <assertPropSet />
+    <assertPropSet/>
   </target>
 
-
   <target name="testPropertyResource">
     <js>
       <propertyresource name="prop" />
     </js>
     <scripttest/>
-    <assertPropSet />
+    <assertPropSet/>
   </target>
 
   <target name="testMixedResources">
-    <js >
+    <js>
       <string refid="script.code" />
       <propertyresource name="prop" />
       <string >
@@ -95,5 +85,4 @@
     <scripttest/>
     <assertPropSet name="property2" />
   </target>
-
-</project>
+</project>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message