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

  $Author: richard $

  $Revision: 1.6 $

  $Log: 3,v $
  Revision 1.6  2002/04/25 13:10:44  richard
  pua a title to the button

  Revision 1.5  2002/04/19 16:14:57  richard
  autofailed

  Revision 1.4  2002/02/27 16:05:59  richard
  correct the test, make as auto

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


-->
<test id="wml2/uabehaviour/navigationreference/refreshtask/3" class="A" scope="wml2" 
	testtype="application" type="auto" source="wml2#5.3.4" device="both">
  <assertion>When the WML:REFRESH task is executed, and the document contains 
  a WML:TIMER element, the timer must be started.
</assertion>
  <specnote>Create a card that contains a WML:REFRESH task, a WML:TIMER element,
  set to 1500 seconds and an ONEVENT timer, that sends the result of the test.
  The WML:REFRESH will reset the timer to a minimal value, so the event timer
  can be executed almost immediatly.
  </specnote>
  <results>
    <result ci="true">
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card newcontext="true" id="main">
	  		<wml:onevent type="enterforward">
        	<wml:refresh>
        		<wml:setvar name="mytimer" value="5" />
        	</wml:refresh>
        </wml:onevent>
        <wml:timer name="mytimer" value="15000" />
				<wml:onevent type="timer">
    			<wml:go href="[[resulturl]]">
      			<wml:postfield name="test" value="pass" />
      			[[sessionvars]]
    			</wml:go>
  			</wml:onevent>
  			<p>It shouldn't take more than 5 secondes or considered the test as failed</p>
				[[auto_failed]]
			</wml:card>	
		]]>
  </method>
</test>
