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

  $Author: richard $

  $Revision: 1.6 $

  $Log: 7,v $
  Revision 1.6  2002/06/14 15:50:27  richard
  remove the enterbackward on the card2

  Revision 1.5  2002/04/25 14:22:06  richard
  the onenterbackward on card2 was missing

  Revision 1.4  2002/03/16 17:17:20  richard
  rewrite test

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


-->
<test id="wml2/uabehaviour/eventmodel/eventbindings/typedevents/7" 
	class="A" scope="wml2" testtype="application" type="auto" 
	source="wml2#5.6.3.1" device="both">
  <assertion>When a WML:CARD has its ONENTERBACKWARD attribute set to a URL,
  and the card is entered via backward navigation, the user agent must 
  navigate to the URL stated.
  </assertion>
  <specnote>Create a card that that contains a link that navigates to a 
  second card, and in the second card, a link to navigate to a third card. 
  In the third card, set the WML:PREV element within a WML:ONEVENT element,
  that will navigate back to the second card. The second card must also 
  contain a ONENTERBACKBARD attribute that navigates back to card1. 
  Make sure that the first card is reached at the end of the cycle.
  </specnote>
  <results>
    <result ci="true">
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
  	<![CDATA[
  		<wml:card id="main" title="main" newcontext="true" >
  			<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" onenterbackward="#main">
  			<wml:onevent type="enterforward">
  				<wml:go href="#card3" />
  			</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>
