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

  $Author: richard $

  $Revision: 1.7 $

  $Log: 2,v $
  Revision 1.7  2002/05/22 15:06:19  richard
  add the text value to differentiate with the password value

  Revision 1.6  2002/03/27 16:32:46  richard
  ADD THE TYPE BECAUSE THEY ARE TEWT INPUT

  Revision 1.5  2002/03/12 12:03:09  richard
  rewroding

  Revision 1.4  2002/03/01 11:14:43  richard
  rewrite tests

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


-->
<test id="wml2/uabehaviour/formprocessing/forminitialisation/textinputcontrol/2"
	class="A" scope="wml2" testtype="application" type="manual"
	source="wml2#5.4.2.2" device="both">
	<assertion>When using a text input control, the control is an INPUT 
	element, the TYPE attribute is set to "text", the WML:NAME attribute is 
	assigned, and the form control variable conforms to the input mask, the 
	initial value of the control must be the value of the control variable.
	</assertion>
	<specnote>Create a card that holds a text input control with the TYPE 
	attribute set to "text", an input mask and a initial value of the WML:NAME 
	attribute that conforms to that mask set in a previous card. Make sure 
	that the initial value is displayed.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
	</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<wml:onevent type="enterforward">
					<wml:go href="#card2">
						<wml:setvar name="xname" value="star!" />
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<form action="#card3">
					<fieldset>
						<p>input:</p>
						<input type="text" wml:name="xname" value="toto" wml:format="*a" />
					</fieldset>
				</form>
				<p>Is the initial value of the control &quot;star!&quot;?
					<br />
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
</test>
