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

  $Author: richard $

  $Revision: 1.5 $

  $Log: 6,v $
  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:23:00  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/6" 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, 
	on completion of the refresh task, the user agent must treat it as an 
	entry to a card and the timer must be restarted.
	</assertion>
	<specnote>Create a card(c1) that holds a WML:ONEVENT element set to 
	'timer', that contains a WML:GO element, that sets a variable and then 
	navigates to a second card that displays the variable. The card(c1) 
	should also hold a WML:TIMER element with its VALUE attribute set to 
	say '150', and a WML:DO task that holds a WML:REFRESH element that will 
	refresh the card. Display the card(c1), wait for '10' seconds and then 
	refresh it. The timer should now restart, which means that navigation to 
	the second card will not take place until another '15' seconds.
	</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="#card2" />
				</wml:onevent>
				<wml:timer name="timer" value="150" />
				<wml:do role="accept" label="refresh">
					<wml:refresh />
				</wml:do>
				<p>Please refresh the card within 10 seconds 
					and then make sure you are taken to card2 15 seconds after you refresh.
				</p>
				<p>After refreshing the card, were you taken to card2 after 15 seconds?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="prev" label="back">
					<wml:prev />
				</wml:do>
				<p>This is card2.<br />
					now go back.
				</p>
			</wml:card>
		]]>
	</method>
</test>
