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

  $Author: richard $

  $Revision: 1.9 $

  $Log: 1,v $
  Revision 1.9  2002/05/24 09:16:46  richard
  missing quotes

  Revision 1.8  2002/04/25 13:12:19  richard
  the / of the go element was not in the right place

  Revision 1.7  2002/04/25 13:10:44  richard
  pua a title to the button

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

  Revision 1.5  2002/03/26 09:16:44  richard
  br and role attribute

  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/1" 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 name and value in each WML:SETVAR element must be 
  converted into a simple string by substituting all referenced variables.
  </assertion>
  <specnote>Create a card that sets two variables, using the WML:SETVAR element,
  within an ONENTERFORWARD event. The event could also contain a WML:GO element 
  to navigate to a second document that displays a variable(not shown when the 
  card is first entered as the variable is not set), and contains a WML:DO element, 
  that contains a WML:REFRESH task, that in turn contains a WML:SETVAR element 
  that sets its name and value attributes to the value of the variables in the 
  first card. Call the first card which will take you to the second document. Make 
  sure that when it is first enterd the variable is not displayed, then press on 
  pressing the refresh button, the variable is displayed.
  </specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
<![CDATA[
  <wml:card newcontext="true" id="main">
    <wml:onevent type="enterforward">
      <wml:go href="#card2">
        <wml:setvar name="x" value="one"/>
        <wml:setvar name="y" value="two"/>
      </wml:go>
    </wml:onevent>
    <p>Was the variable value shown as &quot;two&quot; on the second card, 
    	when it was refreshed?
    		<br/>
			[[yesno]]
		</p>
  </wml:card>
  <wml:card id="card2">
  	<p>Please refresh the card</p>
    <wml:do type="accept" title="refresh">
      <wml:refresh>
        <wml:setvar name="$x" value="$y" />
      </wml:refresh>
    </wml:do>
    <wml:do type="prev" title="prev">
      <wml:prev />
    </wml:do>
    <p>
      The variables value is $(one:noesc) <br />
      Now press the back button.
    </p>
  </wml:card>
]]>
  </method>
</test>
