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

  $Author: richard $

  $Revision: 1.6 $

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

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

  Revision 1.4  2002/03/11 18:12:59  richard
  rewrite tests

  Revision 1.3  2001/10/30 16:22:38  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/7"
	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 WML:NAME attribute must name the form control variable.
	</assertion>
	<specnote>Create a card that holds a textarea control, where the WML:NAME 
	attribute names the form control variable. The card could also hold a link 
	to a second card. Call the card, enter a value, then click the link. This 
	will take you to the second card 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 then submit it.
				</p>
				<p>
					<form action="#card2">
						<fieldset>
							<p>recipient:</p>
							<textarea wml:name="recipient" rows="2" cols="10"/>
						</fieldset>
						<fieldset>
							<input type="submit" value="submit" />
							<input type="reset" value="reset" />
						</fieldset>
					</form>
				</p>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>This is card 2<br />
					$$recipient = $(recipient)<br />
				</p>
				<p>Was the value of the control (your value) displayed in card2?
					<br/>
					[[yesno]]
				</p>
			</wml:card>	
		]]>
	</method>
</test>
