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

  $Author: richard $

  $Revision: 1.8 $

  $Log: 1,v $
  Revision 1.8  2002/06/06 13:38:13  richard
  new spec

  Revision 1.7  2002/05/22 15:06:19  richard
  add the text value to differentiate with the password value

  Revision 1.6  2002/04/23 09:07:09  richard
  reset button

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

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

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


-->
<test id="wml2/uabehaviour/formprocessing/forminitialisation/textinputcontrol/1"
	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", and the WML:NAME attribute
	is assigned, the WML:NAME attribute must name the form control variable.
	</assertion>
	<specnote>Create a card(c1) that holds a text input control, where the 
	TYPE attribute is set to "text" and the WML:NAME attribute names the form 
	control variable. The card(c1) could also hold a link to a second card(c2). 
	Call the card(c1), enter a value, then click the link. This will take you 
	to the second card(c2) that will display the variables value.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please Enter a value for the recipient and submit the form.</p>
				<form action="#card2">
					<fieldset>
						<p>recipient:</p>
						<input type="text" wml:name="recipient" value="nb@nb.com" />
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
						<input type="reset" value="reset" />
					</fieldset>
				</form>
				<p>Was the value of the control (your value) displayed in card2?
					<br />
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
				<p>This is card 2<br />
					$$recipient = $recipient<br />
					Now go back.
				</p>
			</wml:card>
		]]>
	</method>
</test>
