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

  $Author: richard $

  $Revision: 1.4 $

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

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


-->
<test id="wml2/uabehaviour/eventmodel/eventbindings/typedevents/10" 
	class="A" scope="wml2" testtype="application" type="auto" 
	source="wml2#5.6.3.1" device="both">
  <assertion>When an event binding is used, it must be scoped to the element 
  in which it is declared.
  </assertion>
  <specnote>Create a document with at least two cards. Both cards should 
  hold a timer event handler, and both cards should hold a WML:TIMER element 
  which could be set to '5' seconds. Each WML:ONEVENT element could also be 
  set to go to different cards. Display both cards, and make sure that the 
  timer event only occurs for the card that holds the event binding.
  </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="timer">
  				<wml:go href="#card4" />
  			</wml:onevent>
  			<wml:timer value="5" />
  			[[auto_failed]]
  		</wml:card>
  		<wml:card id="card2" title="card2" newcontext="true">
  			<wml:onevent type="timer">
  				<wml:go href="#card3" />
  			</wml:onevent>
  			<wml:timer value="5" />
  		</wml:card>
  		<wml:card id="card3" title="card3">
  			<p>If you reach this card then the test has failed.</p>
  			[[auto_failed]]
  		</wml:card>
  		<wml:card id="card4" title="card4">
  			<wml:onevent type="timer">
  			<wml:go href="[[resulturl]]">
  					<wml:postfield name="test" value="pass" />
  					[[sessionvars]]
  				</wml:go>
  			</wml:onevent>
  			<wml:timer value="50" />
  			[[auto_failed]]
  		</wml:card>
  	]]>
	</method>
</test>
