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

  $Author: richard $

  $Revision: 1.1 $

  $Log: 15,v $
  Revision 1.1  2002/06/06 13:46:36  richard
  new spec

  Revision 1.6  2002/04/20 08:43:42  richard
  yesno

  Revision 1.5  2002/03/27 16:36:59  richard
  add the type="text" because it is text input

  Revision 1.4  2002/03/14 11:04:04  richard
  rewrite test

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


-->
<test id="wml2/uabehaviour/formprocessing/forminteraction/textinputcontrol/15" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.2" device="both">
	<assertion>When using a text input control, the control is a TEXTAREA 
	element, and the value input by the user into the control does not 
	conform to the input mask, the control variable must not be modified.
	</assertion>
	<specnote>Create a card that holds a textarea control with a format 
	mask. Enter a value that does not conform to the input mask and attempt 
	to commit it. The user agent must display a message that the input 
	doesn't conform, and then re-display the card. The card should also 
	hold a link to another card, so that you can navigate to a second card 
	that will display the control variable, which will show that it has not 
	been modified.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please enter some letters in the input field
					And then Submit the form
				</p>
				<form action="#card2">
					<fieldset>
						<p>textarea:</p>
						<textarea wml:name="recipient" rows="2" cols="10" wml:format="NNNN*N"/>
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				<p>Now Go to card2 using this
					<a href="#card2">Link</a>
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>This is card 2<br />
					$$recipient = $(recipient)<br />
				</p>
				<p>If you reach this card by entering incorrect letters, the test has failed</p>
				<p>Is the $$recipient variable an empty string?
					<br/>
					[[yesno]]
				</p>
			</wml:card>	
		]]>
	</method>
</test>
