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

	$Author: richard $

	$Revision: 1.7 $

	$Log: 5,v $
	Revision 1.7  2002/06/17 16:43:10  richard
	rewrite the test
	
	Revision 1.6  2002/04/23 10:51:14  richard
	missing thewml:do task

	Revision 1.5  2002/04/20 09:15:51  richard
	yesno

	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/5" class="A" scope="wml2" 
	testtype="application" type="manual" source="wml2#5.11" device="both">
	<assertion>When a refresh task is invoked while a timer is running, the 
	task must stop the timer, commit it's value to the context, and update 
	the user agent accordingly.
	</assertion>
	<specnote>Create a card with a WML:TIMER set to '600' seconds, and a 
	WML:DO element that will invoke a refresh task. The card must also 
	display the timer variable(when set). Display the card then press the 
	refresh button. The value of the timer variable should be displayed.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<wml:onevent type="timer">
					<wml:go href="[[resulturl]]">
						<wml:postfield name="submit" value="no" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				<wml:timer name="timer" value="600" />
				<p>Please go to card card2</p>
				<wml:do type="accept" label="card2" title="card2">
					<wml:go href="#card2">
						<wml:postfield name="timer" value="$timer" />
					</wml:go>
				</wml:do>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>The variable $$timer = $timer</p>
				<p>Is the value of the timer shown to be less than or equal to 600?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
</test>
