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

  $Author: richard $

  $Revision: 1.5 $

  $Log: 4,v $
  Revision 1.5  2002/04/19 16:19:02  richard
  autofailed

  Revision 1.4  2002/03/17 18:34:31  richard
  rewrit test

  Revision 1.3  2001/10/30 16:23:00  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/uaconformance/4" class="A" scope="wml2" 
	testtype="application" type="auto" source="wml2#5.13" device="both">
	<assertion>When a user agent encounters an attribute value it does 
	not recognize, it must use the default attribute value(if there is one 
	for that element).
	</assertion>
  <specnote>Create a card that sets a variable on entry. The card could 
  also contain a link to a second card. The second card could set the 
  NEWCONTEXT attribute to an unrecognisable value(e.g. new context="blah"). 
  The second card could also contain a WML:GETVAR element to display the 
  variable set in the first card. Display the first card, click the link 
  and make sure you are taken to the second card, and that the variable 
  set in the first card is displayed. Thus implying the NEWCONTEXT attribute 
  defaulted to 'false'.
  </specnote>
  <results>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
	  		<wml:onevent type="enterforward">
  	  		<wml:go href="#card2">
    	 	 		<wml:setvar name="toto" value="pass" />
    			</wml:go>
 				</wml:onevent>
				[[auto_failed]]
 			</wml:card>
 			<wml:card id="card2" title="card2" newcontext="blah">
	  		<wml:onevent type="enterforward">
  	  		<wml:go href="[[resulturl]]">
    	 	 		<wml:postfield name="test" value="$toto" />
      			[[sessionvars]]
    			</wml:go>
  			</wml:onevent>
				[[auto_failed]]
			</wml:card>
		]]>
  </method>
</test>
