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

  $Author: richard $

  $Revision: 1.8 $

  $Log: 8,v $
  Revision 1.8  2002/06/06 13:41:48  richard
  new spec

  Revision 1.7  2002/04/25 09:43:50  richard
  add an extra autofailed

  Revision 1.6  2002/04/19 15:13:50  richard
  autofailed

  Revision 1.5  2002/03/26 16:28:26  richard
  wml:card start incorrect

  Revision 1.4  2002/03/13 11:40:46  richard
  no form element present while testing form initialisation

  Revision 1.3  2001/10/30 16:22:35  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/menucontrol/8" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.3" device="both">
	<assertion>When the control only permits a single selection, the WML:NAME 
	attribute of the SELECT element is specified, and the VALUE attribute 
	of the OPTION element is not, the variable named by the WML:NAME 
	attribute must be set to a empty string.
	</assertion>
	<notes>Set as manual because the oneterforward is processed before the
	select and can be non initialized
	</notes>
	<specnote>Create a card with three OPTION elements within a SELECT 
	element. Add the WML:NAME attribute to the SELECT element and set it to 
	the name of a variable that is not set. Also do not set any of the OPTION 
	elements VALUE attributes. When the card is entered the default option 
	index must be set to an empty string. Therefore when the page is 
	displayed it could show the value of the variable named by the WML:NAME 
	attribute set to an empty string.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<form action="#card3">
					<fieldset>
						<p>Choice</p>
						<select wml:name="choice">
							<option>Airplane</option>
							<option>Railway</option>
							<option>Automobile</option>
						</select>
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				<p>The value of the $$choice variable is $choice</p>
				<p>Is the $$choice variable an empty string?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
</test>
