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 Wed, 03 Apr 2002 21:24:20 GMT
ovidiu      02/04/03 13:24:20

  Added:       src/scratchpad/schecoon/tests/anteater calc.xml
  Log:
  Added.
  
  Revision  Changes    Path
  1.1                  xml-cocoon2/src/scratchpad/schecoon/tests/anteater/calc.xml
  
  Index: calc.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  
  <project name="calc-test" default="test">
  
    <taskdef resource="META-INF/Anteater.tasks"/>
  
    <property name="schecoon" value="http://localhost:8090/schecoon"/>
  
    <target name="calc.js">
      <http description="Test the 'calc' JavaScript implementation">
        <httpRequest href="${schecoon}/calc/">
          <match>
            <xpath select="html/form/@action" assign="cont1"/>
          </match>
        </httpRequest>
        <httpRequest href="${schecoon}/calc/${cont1}">
          <parameter name="a" value="1"/>
          <match>
            <xpath select="html/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"/>
          </match>
        </httpRequest>
        <httpRequest href="${schecoon}/calc/kont/${cont3}">
          <parameter name="operator" value="plus"/>
          <match>
            <xpath select="html/form/p[contains(text(),'Result')]/b"
  		 value="3.0"
  		 assign="result"/>
          </match>
        </httpRequest>
        <echo>result = ${result}</echo>
      </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