ovidiu      02/04/15 18:04:23

  Modified:    src/scratchpad/schecoon/tests/anteater calc.xml
  Log:
  Updated to work with the latest changes in the generated output.
  
  Revision  Changes    Path
  1.4       +16 -14    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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- calc.xml  5 Apr 2002 01:47:33 -0000       1.3
  +++ calc.xml  16 Apr 2002 01:04:23 -0000      1.4
  @@ -3,28 +3,30 @@
   <project name="calc-test" default="calc">
   
     <target name="calc">
  +    <property name="calc" value="${schecoon}/examples/calc"/>
  +
       <http description="Test the 'calc' JavaScript implementation">
  -      <httpRequest href="${schecoon}/calc/">
  +      <httpRequest href="${calc}/">
           <match>
  -          <xpath select="html/body/form/@action" assign="cont1"/>
  +          <xpath select="html/body//form/@action" assign="cont1"/>
           </match>
         </httpRequest>
  -      <httpRequest href="${schecoon}/calc/${cont1}">
  +      <httpRequest href="${calc}/${cont1}">
           <parameter name="a" value="1"/>
           <match>
  -          <xpath select="html/body/form/@action" assign="cont2"/>
  +          <xpath select="html/body//form/@action" assign="cont2"/>
           </match>
         </httpRequest>
  -      <httpRequest href="${schecoon}/calc/kont/${cont2}">
  +      <httpRequest href="${calc}/kont/${cont2}">
           <parameter name="b" value="2"/>
           <match>
  -          <xpath select="html/body/form/@action" assign="cont3"/>
  +          <xpath select="html/body//form/@action" assign="cont3"/>
           </match>
         </httpRequest>
  -      <httpRequest href="${schecoon}/calc/kont/${cont3}">
  +      <httpRequest href="${calc}/kont/${cont3}">
           <parameter name="operator" value="plus"/>
           <match>
  -          <xpath select="html/body/form/p[contains(text(),'Result')]/b"
  +          <xpath select="html/body//form/p[contains(text(),'Result')]/b"
                 value="3.0"
                 assign="result"/>
           </match>
  @@ -33,16 +35,16 @@
       </http>
   
       <http description="Simulate going back in the browser">
  -      <httpRequest href="${schecoon}/calc/kont/${cont2}">
  +      <httpRequest href="${calc}/kont/${cont2}">
           <parameter name="b" value="4"/>
           <match>
  -          <xpath select="html/body/form/@action" assign="cont4"/>
  +          <xpath select="html/body//form/@action" assign="cont4"/>
           </match>
         </httpRequest>
  -      <httpRequest href="${schecoon}/calc/kont/${cont4}">
  +      <httpRequest href="${calc}/kont/${cont4}">
           <parameter name="operator" value="minus"/>
           <match>
  -          <xpath select="html/body/form/p[contains(text(),'Result')]/b"
  +          <xpath select="html/body//form/p[contains(text(),'Result')]/b"
                 value="-3.0"
                 assign="result"/>
           </match>
  @@ -51,10 +53,10 @@
       </http>
   
       <http description="Simulate going back again in the browser">
  -      <httpRequest href="${schecoon}/calc/kont/${cont4}">
  +      <httpRequest href="${calc}/kont/${cont4}">
           <parameter name="operator" value="divide"/>
           <match>
  -          <xpath select="html/body/form/p[contains(text(),'Result')]/b"
  +          <xpath select="html/body//form/p[contains(text(),'Result')]/b"
                 value="0.25"
                 assign="result"/>
           </match>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to