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

  $Author: richard $

  $Revision: 1.5 $

  $Log: 3,v $
  Revision 1.5  2002/04/19 16:16:40  richard
  autofailed

  Revision 1.4  2002/03/17 16:35:31  richard
   rewrite test

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


-->
<test id="wml2/uabehaviour/timerprocessing/3" class="A" scope="wml2" 
	testtype="application" type="auto" source="wml2#5.11" device="both">
	<assertion>When a timer is running within a card, and the timer expires 
	before the user exits the card, a TIMER event must occur.
	</assertion>
  <specnote>Create a card that contains a WML:TIMER element set to a value 
  of say five seconds. The card should also contain a WML:ONEVENT element 
  with it's TYPE attribute set to 'timer'. When the event occurs a script 
  could be called.
  </specnote>
  <results>
    <result>
      <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="[[resulturl]]">
     	 			<wml:postfield name="test" value="pass" />
      			[[sessionvars]]
    			</wml:go>
  			</wml:onevent>
		  	<wml:timer name="timer" value="10" />
  			<p>You should be taken to the next test in less than 5 seconds.</p>
				[[auto_failed]]
			</wml:card>
		]]>
  </method>
</test>
