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

  $Author: richard $

  $Revision: 1.7 $

  $Log: 4,v $
  Revision 1.7  2002/04/20 09:21:21  richard
  yesno

  Revision 1.6  2002/04/17 13:33:09  ajmc
  Removed first <method>

  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/4" class="A" scope="wml2" 
	testtype="application" type="manual" source="wml2#5.2.2" device="both">
  <assertion>When an explicitly specified card is loaded into the history stack, 
  a minimum of the absolute url, method, value of any postfields, and any request 
  headers must be stored.
  </assertion>
  <specnote>Create a card(c1) that holds a postfield element
  via the post method, and shows a card(c2) with the postfield data. 
  Card-c2 could hold a link to a third card(c3), that displays a message to 
  navigate backwards. Navigate back to card-c2 and make sure that the postfield data, 
  and request headers are once again shown, and have not changed.(HTTP caching 
  directives could be set to force the browser to hit the server, and not load from cache)
  </specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main">
				<p>Go to card2</p>
				 <wml:do type="accept">
    			<wml:go method="post" href="#card2">
      			<wml:setvar name="toto" value="hello" />
    			</wml:go>
  			</wml:do>
				<p>Have you been able to reach card3 and seen the variable $$toto on card2 ?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>This is card2</p>
				<p>the variable $$toto is $toto (should be hello)</p>
				<p>Click this &nbsp;
					<a href="#card3">Link</a>&nbsp;
					to go to the third card and then return to this one using the back button.<br/>
					Finally press the back button on this card.
				</p>
			</wml:card>
			<wml:card id="card3">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>This is card3
					<br/>
					Now press the back button.
				</p>
			</wml:card>
		]]>
  </method>
</test>

