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

  $Author: richard $

  $Revision: 1.4 $

  $Log: 9,v $
  Revision 1.4  2002/03/16 17:17:20  richard
  rewrite test

  Revision 1.3  2001/10/30 16:22:31  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/9" 
	class="A" scope="wml2" testtype="application" type="auto" 
	source="wml2#5.6.3.1" device="both">
  <assertion>When the user agent handles an event, it must treat the 
  attribute syntax as an abbreviated form of the WML:ONEVENT element, 
  where the attribute name is mapped to the TYPE attribute of the 
  WML:ONEVENT element.
  </assertion>
  <specnote>Create a card c1 wtih an ONENTERFORWARD attribute pointing
  to a card c2. The card c2 will have an ONENVENT element with
  enterforward as value of its TYPE attribute. Make sure that the same 
  behaviour happens for both events.
  </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>
