<?xml version="1.0" encoding="UTF-8"?>
<!--

  $Author: richard $

  $Revision: 1.5 $

  $Log: 14,v $
  Revision 1.5  2002/04/19 16:13:22  richard
  autofailed, missing / or extra / on wml:carcd element
  move the fragment into a page document

  Revision 1.4  2002/02/27 14:57:05  richard
  rewrite tests,correct bug, pass as auto

  Revision 1.3  2001/10/30 16:22:50  gb
  Modified all the test files in the wml2 directory such that it puts the <?xml?> declaration back at the top of the file, before the comment.

  Revision 1.2  2001/10/08 21:56:28  gb
  Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/navigationreference/prevtask/14" class="A" scope="wml2" 
	testtype="application" type="auto" source="wml2#5.3.2" device="both">
  <assertion>When the WML:PREV task is executed, the destination card must be 
  displayed using the current variable state.
  </assertion>
  <specnote>Create a card that displays a variable(not set on first display), 
  and a link to a second card. The second card must contain a WML:PREV task, 
  that will set a variable when executed. Navigate to the second card, and then 
  press the back button. This will take you back to the first card, and the 
  variable will be displayed with the new value.
  </specnote>
 <results>
    <result ci="true">
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
		<![CDATA[
  		<wml:card newcontext="true" id="main">
    		<wml:onevent type="enterforward">
      		<wml:go href="#card2" />
    		</wml:onevent>
    		<wml:onevent type="enterbackward">
    			<wml:go href="[[resulturl]]">
     	 			<wml:postfield name="test" value="$x" />
      			[[sessionvars]]
    			</wml:go>
  			</wml:onevent>
				[[auto_failed]]
  		</wml:card>
  		<wml:card id="card2">
    		<wml:onevent type="enterforward">
      		<wml:prev>
		        <wml:setvar name="x" value="pass" />
      		</wml:prev>
    		</wml:onevent>
				[[auto_failed]]
      </wml:card>
		]]>
  </method>
  
</test>
