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

  $Author: richard $

  $Revision: 1.7 $

  $Log: 6,v $
  Revision 1.7  2002/06/16 10:30:34  richard
  missing task in the onevent

  Revision 1.6  2002/04/20 09:21:21  richard
  yesno

  Revision 1.5  2002/03/25 17:01:29  richard
  role =back into type=prev

  Revision 1.4  2002/02/25 15:29:25  richard
  rewrite the test

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


-->
<test id="wml2/uabehaviour/uacontext/navhistory/6" class="A" scope="wml2" 
	testtype="application" type="manual" source="wml2#5.2.2" device="both">
  <assertion>When an entry is loaded into the history stack , variable references 
  	in the resource request information must be replaced with the current value of
  	the variable before loading takes place.
</assertion>
  <specnote>Create a card(c1) that sets say three variables on entry and displays 
  them to the user. These variables should be set to a value that will be used in 
  a parameterized URL. The card(c1) could hold a link
  ((e.g. http://www.example.com/$x/$y.$ext) to a card in a second document(c2) 
  that will set the variables to a new value on entry, and could also contain 
  a WML:DO element of type 'back', that contains a WML:PREV task to take the user 
  back to the first card. Load the initial card, navigate through to the second 
  document(c2), then press the back button. Make sure you are taken to the previous 
  card(c1).
  </specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
<![CDATA[
	<wml:card newcontext="true" id="main">
		<p>This is card1</p>
		<wml:onevent type="enterforward">
			<wml:refresh>
				<wml:setvar name="x" value="doc"/>
				<wml:setvar name="y" value="wml"/>
			</wml:refresh>
		</wml:onevent>
		<p>
			The variable $$x = $x<br />
			The variable $$y = $y<br />
		</p>
		<p>
			Click this &nbsp;
			<a href="navhist6_ext_$x.$y">Link</a>&nbsp;
			to go to second card.<br />
		</p>
		<p>Are the values of the variable x and y the same as when card1 first appears ?
			<br/>
			[[yesno]]
		</p>
		</wml:card>
]]>
  </method>
</test>

