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

  $Author: richard $

  $Revision: 1.8 $

  $Log: 13,v $
  Revision 1.8  2002/04/25 15:10:58  richard
  quote missing

  Revision 1.7  2002/04/19 15:43:56  richard
  autofailed

  Revision 1.6  2002/02/27 09:47:32  richard
  set the type of the test element as auto

  Revision 1.5  2002/02/26 14:21:05  richard
   pass as auto

  Revision 1.4  2002/02/26 13:55:32  richard
  rewrite the tests

  Revision 1.3  2001/10/30 16:22:47  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:26  gb
  Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/navigationreference/gotask/13" class="A" scope="wml2" 
	testtype="application" type="auto" source="wml2#5.3.1" device="both">
  <assertion>When the WML:GO task is executed to take the user to another card, 
  an entry referring to the destination must be pushed onto the history stack.
  </assertion>
  <notes>Can only visually check the stack by navigation.</notes>
  <specnote>Create a card that contains a link which will navigate to a new card. 
  Navigate to a second document which will now be pushed onto the history stack.
  Click a link on the second card to take you to a third card. Next use the back
  button to go back to the second card. The second card will be shown, proving 
  that it had been added to the history stack.
  </specnote>
  <results>
    <result ci="true">
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
		<![CDATA[
    	<wml:card newcontext="true" id="main" title="main">
				<wml:onevent type="enterforward">
					<wml:go href="#card2" />
				</wml:onevent>
				<wml:onevent type="enterbackward">
    			<wml:go href="[[resulturl]]">
      			<wml:postfield name="test" value="pass" />
      			[[sessionvars]]
    			</wml:go>
  			</wml:onevent>
				[[auto_failed]]
      </wml:card>
    	<wml:card id="card2" title="card2">
      	<wml:onevent type="enterforward">
					<wml:go href="#card3" />
				</wml:onevent>
				<wml:onevent type="enterbackward">
        	<wml:prev />
        </wml:onevent>
				[[auto_failed]]
      </wml:card>
      <wml:card id="card3" title="card3">
      	<wml:onevent type="enterforward">
        	<wml:prev />
        </wml:onevent>
				[[auto_failed]]
      </wml:card>
		]]>
  </method>
</test>
