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

  $Author: richard $

  $Revision: 1.4 $

  $Log: 6,v $
  Revision 1.4  2002/03/16 17:17:19  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/6" 
	class="A" scope="wml2" testtype="application" type="auto" 
	source="wml2#5.6.3.1" device="both">
  <assertion>When a WML:CARD element has its ONENTERFORWARD attribute set 
  to a URL, and the card is entered, the user agent must automatically 
  navigate to the given URL.
  </assertion>
  <specnote>Create a card that sets the ONENTERFORWARD attribute of the 
  WML:CARD element to go to a script when the card is entered via forward 
  navigation.
  </specnote>
  <results>
    <result ci="true">
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
  	<![CDATA[
  		<wml:card id="main" title="main" newcontext="true" onenterforward="#card2">
  			[[auto_failed]]
  		</wml:card>
  		<wml:card id="card2" title="card2">
  			<wml:onevent type="enterforward">
  				<wml:go href="[[resulturl]]">
  					<wml:postfield name="test" value="pass" />
  					[[sessionvars]]
  				</wml:go>
  			</wml:onevent>
  			[[auto_failed]]
  		</wml:card>
  	]]>
  </method>
</test>

