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

  $Author: richard $

  $Revision: 1.11 $

  $Log: 12,v $
  Revision 1.11  2002/06/17 16:28:00  richard
  change .* to a

  Revision 1.10  2002/04/23 10:43:25  richard
  / of the go element in the wrong place

  Revision 1.9  2002/04/19 15:43:56  richard
  autofailed

  Revision 1.8  2002/04/15 14:13:17  ajmc
  Added value to be any value, not just an empty string

  Revision 1.7  2002/03/26 09:12:18  richard
  start wml:card extra /
  includes external decks

  Revision 1.6  2002/02/27 09:47:32  richard
  set the type of the test element as auto

  Revision 1.5  2002/02/26 14:20:55  richard
  syntax error

  Revision 1.4  2002/02/26 13:55:32  richard
  rewrite the tests

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


-->
<test id="wml2/uabehaviour/navigationreference/gotask/12" class="A" scope="wml2" 
	testtype="application" type="auto" source="wml2#5.3.1" device="both">
  <assertion>When the WML:GO task is executed, and the destination document contains 
  a WML:NEWCONTEXT attribute, a new user agent context must be created.
  </assertion>
  <specnote>Create a card that will navigate to a new document which contains 
  a WML:NEWCONTEXT attribute. Set variables within the first document, and make 
  sure they exist, then navigate to the second document and make sure that the 
  variables no longer exist.
  </specnote>
  <results>
    <result>
      <name>test</name>
      <value>a</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:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card newcontext="true" id="card2">
	  		<wml:onevent type="enterforward">
    			<wml:go href="[[resulturl]]">
      			<wml:postfield name="test" value="a$x" />
      			[[sessionvars]]
    			</wml:go>
  			</wml:onevent>
				[[auto_failed]]
			</wml:card>	
		]]>
  </method>
</test>
