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

  $Author: richard $

  $Revision: 1.5 $

  $Log: 5,v $
  Revision 1.5  2002/03/26 16:21:54  richard
  wrap

  Revision 1.4  2002/02/28 15:55:31  richard
  rewrite tests

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


-->
<test id="wml2/uabehaviour/formprocessing/forminitialisation/5" class="B" scope="wml2" 
	testtype="application" type="manual" source="wml2#5.4.2" device="both">
  <assertion>When displaying a card with form controls, the user agent must 
  perform form initialisation at the appropriate step in the reference 
  processing model.
  </assertion>
  <notes>Create a card that holds an input control with the WML:NAME and 
  VALUE attributes set. The card should also display the control variables value
  using the WML:GETVAR element. Display the card and make sure that the controls
  initial value and the variable value match.
  </notes>
	<specnote>Untestable as there are no way to test the internal processing of
	the user agent. More specific tests are covered in futher assertions.
  </specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
<![CDATA[
<wml:card id="main" title="main" newcontext="true">
  <p>
    Lang:
      <input wml:name="lang" value="english" />
  </p>
  <p>
    The variable $$lang = $lang<br />
  </p>
  <p>Does the $$lang variable hold the same value as the control?
    <br />
[[yesno]]
  </p>
</wml:card>
]]>
  </method>
</test>
