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

  $Author: richard $

  $Revision: 1.6 $

  $Log: 4,v $
  Revision 1.6  2002/06/06 13:41:48  richard
  new spec

  Revision 1.5  2002/04/20 08:30:46  richard
  yesno

  Revision 1.4  2002/03/13 11:40:45  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:17  gb
  Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/formprocessing/forminitialisation/menucontrol/4" 
	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 default 
	option index has not yet been determined and the WML:VALUE attribute 
	of the SELECT element is specified, the default option index must be 
	the index of the option whose VALUE attribute equals the value of the 
	WML:VALUE attribute.
	</assertion>
	<specnote>Create a card with three OPTION elements within a SELECT 
	element. Set the WML:VALUE attribute of the SELECT element to equal one 
	of the values of the OPTION elements VALUE attributes, and when the 
	options are displayed, the value that matches must be the default option.
	</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" wml:value="train">
							<option value="plane">Airplane</option>
							<option value="train">Railway</option>
							<option value="car">Automobile</option>
						</select>
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				<p>Is the initial value of the control &apos;Railway&apos;?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
</test>
