cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/tests/anteater calc.xml
Date Fri, 05 Apr 2002 01:47:33 GMT
ovidiu      02/04/04 17:47:33

  Modified:    src/scratchpad/schecoon/tests/anteater calc.xml
  Log:
  Modified to be picked up automatically by all-tests.xml.
  
  Revision  Changes    Path
  1.3       +9 -19     xml-cocoon2/src/scratchpad/schecoon/tests/anteater/calc.xml
  
  Index: calc.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/tests/anteater/calc.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- calc.xml	4 Apr 2002 06:43:21 -0000	1.2
  +++ calc.xml	5 Apr 2002 01:47:33 -0000	1.3
  @@ -1,38 +1,30 @@
   <?xml version="1.0" encoding="utf-8"?>
   
  -<project name="calc-test" default="test">
  +<project name="calc-test" default="calc">
   
  -  <taskdef resource="META-INF/Anteater.tasks"/>
  -
  -  <property name="host" value="localhost"/>
  -  <property name="port" value="8080"/>
  -  <property name="base" value="schecoon"/>
  -
  -  <property name="schecoon" value="http://${host}:${port}/${base}"/>
  -
  -  <target name="calc.js">
  +  <target name="calc">
       <http description="Test the 'calc' JavaScript implementation">
         <httpRequest href="${schecoon}/calc/">
           <match>
  -          <xpath select="html/form/@action" assign="cont1"/>
  +          <xpath select="html/body/form/@action" assign="cont1"/>
           </match>
         </httpRequest>
         <httpRequest href="${schecoon}/calc/${cont1}">
           <parameter name="a" value="1"/>
           <match>
  -          <xpath select="html/form/@action" assign="cont2"/>
  +          <xpath select="html/body/form/@action" assign="cont2"/>
           </match>
         </httpRequest>
         <httpRequest href="${schecoon}/calc/kont/${cont2}">
           <parameter name="b" value="2"/>
           <match>
  -          <xpath select="html/form/@action" assign="cont3"/>
  +          <xpath select="html/body/form/@action" assign="cont3"/>
           </match>
         </httpRequest>
         <httpRequest href="${schecoon}/calc/kont/${cont3}">
           <parameter name="operator" value="plus"/>
           <match>
  -          <xpath select="html/form/p[contains(text(),'Result')]/b"
  +          <xpath select="html/body/form/p[contains(text(),'Result')]/b"
   		 value="3.0"
   		 assign="result"/>
           </match>
  @@ -44,13 +36,13 @@
         <httpRequest href="${schecoon}/calc/kont/${cont2}">
           <parameter name="b" value="4"/>
           <match>
  -          <xpath select="html/form/@action" assign="cont4"/>
  +          <xpath select="html/body/form/@action" assign="cont4"/>
           </match>
         </httpRequest>
         <httpRequest href="${schecoon}/calc/kont/${cont4}">
           <parameter name="operator" value="minus"/>
           <match>
  -          <xpath select="html/form/p[contains(text(),'Result')]/b"
  +          <xpath select="html/body/form/p[contains(text(),'Result')]/b"
   		 value="-3.0"
   		 assign="result"/>
           </match>
  @@ -62,7 +54,7 @@
         <httpRequest href="${schecoon}/calc/kont/${cont4}">
           <parameter name="operator" value="divide"/>
           <match>
  -          <xpath select="html/form/p[contains(text(),'Result')]/b"
  +          <xpath select="html/body/form/p[contains(text(),'Result')]/b"
   		 value="0.25"
   		 assign="result"/>
           </match>
  @@ -71,7 +63,5 @@
       </http>
   
     </target>
  -
  -  <target name="test" depends="calc.js"/>
   
   </project>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message