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

  $Author: richard $

  $Revision: 1.6 $

  $Log: 1,v $
  Revision 1.6  2002/04/19 14:37:52  richard
  autofailed

  Revision 1.5  2002/03/18 10:05:50  richard
  rewrite test

  Revision 1.4  2002/01/29 12:12:27  gb
  Modified loads of tests to fix mostly syntatic errors, including non quoting of attribute values and the incorrect use of macros, usually [[autofailed]].
  Modified Files:
   	wml2/markup/contextandnav/wmlanchorelement/3
   	wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/1
   	wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/2
   	wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/3
   	wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/4
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/1
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/11
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/12
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/2
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/3
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/4
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/5
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/6
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/7
  	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/8
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/9
   	wml2/markup/formsmodule/wmlonpickattribute/1
   	wml2/markup/formsmodule/wmlonpickattribute/2
   	wml2/markup/formsmodule/wmlonpickattribute/3
   	wml2/markup/structuremodule/bodyelement/1
   	wml2/markup/structuremodule/wmlcardelement/1
   	wml2/markup/structuremodule/wmlcardelement/2
   	wml2/markup/structuremodule/wmlcardelement/3
   	wml2/uabehaviour/attribexplang/1
   	wml2/uabehaviour/attribexplang/wmlvariable/regendocument/1
   	wml2/uabehaviour/attribexplang/wmlvariable/regendocument/2
   	wml2/uabehaviour/attribexplang/wmlvariable/validation/2
   	wml2/uabehaviour/attribexplang/wmlvariable/variableref/1
   	wml2/uabehaviour/attribexplang/wmlvariable/variableref/2
   	wml2/uabehaviour/attribexplang/wmlvariable/variableref/5
   	wml2/uabehaviour/attribexplang/wmlvariable/variableref/6
   	wml2/uabehaviour/attribexplang/wmlvariable/variablescoping/declarations/2
  	wml2/uabehaviour/backkey/2
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/1
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/2
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/3
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/4
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/5

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


-->
<test id="wml2/markup/structuremodule/bodyelement/1" class="A" scope="wml2" 
	testtype="application" type="auto" source="wml2#6.2.1" device="both">
	<assertion>When a document is entered, and the WML:NEWCONTEXT attribute 
	is set to 'true', the user agent context must be initialised.
	</assertion>
	<specnote>Create a document that sets a variable upon entry and then 
	navigates to a second document that has the WML:NEWCONTEXT attribute
	(within a BODY element) set to 'true'. The second document could then 
	automatically navigate to a script that checks the value of the variable. 
	Make sure that the variable is not set.
	</specnote>
  <results>
    <result>
      <name>test</name>
      <value>a</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
	  		<wml:onevent type="enterforward">
  	  		<wml:go href="[[page1]]">
    	 	 		<wml:setvar name="toto" value="pass" />
    			</wml:go>
 				</wml:onevent>
				[[auto_failed]]
 			</wml:card>
		]]>
  </method>
  <pages>
		<page id="1">
			<![CDATA[
				<?xml version="1.0" encoding="UTF-8"?>
				<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/wml20.dtd">
				<html wml:use-xml-fragments="true"
					xmlns="http://www.w3.org/1999/xhtml"
					xmlns:wml="http://www.wapforum.org/2001/wml">
					<head>
						<title>Body element 1</title>
					</head>
					<body wml:newcontext="true">
						<wml:onevent type="enterforward">
  		  			<wml:go href="[[resulturl]]">
    			 	 		<wml:postfield name="test" value="a$(toto)" />
      					[[sessionvars]]
    					</wml:go>
  					</wml:onevent>
						[[auto_failed]]
  				</body>
  			</html>
			]]>
		</page>
	</pages>
</test>
