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

  $Author: richard $

  $Revision: 1.6 $

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

  Revision 1.5  2002/04/20 09:07:25  richard
  yesno

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

  Revision 1.3  2001/10/30 16:22:52  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/2" class="A" scope="wml2" 
	testtype="application" type="manual" source="wml2#5.3.4" device="both">
	<assertion>When the WML:REFRESH task is executed, and it contains WML:SETVAR 
	elements, the variable assignments resulting from the processing must be 
	assigned to the current user agent context.
	</assertion>
	<specnote>Create a card that displays a variable(not set in the first 
	instance) and also has a WML:SETVAR element within a WML:REFRESH element 
	within a WML:DO element. Press the refresh button and the new variable value 
	will be displayed.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
<![CDATA[
  <wml:card newcontext="true" id="main">
    <p>Please Refresh the card</p>
    <wml:do type="accept" title="refresh">
      <wml:refresh>
        <wml:setvar name="x" value="pass" />
      </wml:refresh>
    </wml:do>
    <p>
      The variable $$x = $x
    </p>
    <p>Was the variable &quot;x&quot; shown as &quot;pass&quot; 
    	when the card was refreshed?
      <br />
			[[yesno]]
    </p>
  </wml:card>
]]>
  </method>
</test>
