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

  $Author: richard $

  $Revision: 1.8 $

  $Log: 12,v $
  Revision 1.8  2002/05/22 15:06:20  richard
  add the text value to differentiate with the password value

  Revision 1.7  2002/04/23 09:07:10  richard
  reset button

  Revision 1.6  2002/04/19 15:19:42  richard
  autofailed

  Revision 1.5  2002/03/12 14:05:12  richard
  the global variables haven't been initialized

  Revision 1.4  2002/03/11 18:13:00  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/12" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.2" device="both">
	<assertion>When using a text input control, and the control is a TEXTAREA 
	element, the initial value must be pre-loaded into the control, when the 
	WML:NAME control variable is set.
	</assertion>
	<specnote>Create a card that holds a text input control, with the WML:NAME 
	attribute set to the name of a variable holding a non-empty value. Display 
	the card and make sure that the initial value of the control is the value 
	for that variable.
	</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="recipient" value="toto" />
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2">
				<p>
					<form action="#card3">
						<fieldset>
							<p>recipient:</p>
							<textarea wml:name="recipient" rows="10" cols="10">
								FALSE
							</textarea>
						</fieldset>
						<fieldset>
							<input type="submit" value="submit" />
							<input type="reset" value="reset" />
						</fieldset>
					</form>
				</p>
				<p>Is the initial value of the control &quot;toto&quot;?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
</test>
