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

  $Author: richard $

  $Revision: 1.8 $

  $Log: 15,v $
  Revision 1.8  2002/06/06 13:41:45  richard
  new spec

  Revision 1.7  2002/04/23 16:49:21  richard
  add a new autofailed

  Revision 1.6  2002/04/19 15:13:49  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:34  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/15" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.3" device="both">
	<assertion>When the WML:NAME attribute of the SELECT element is specified 
	and multiple selections are permitted, for each index in the default 
	indices which is greater than zero, the variable named by the WML:NAME 
	attribute must be set to a semicolon delimited string of the VALUE 
	attribute on the OPTION elements.
	</assertion>
	<specnote>Create a card with three OPTION elements within a SELECT 
	element. Set the variable named by the WML:NAME attribute of the SELECT 
	element to a semicolon-delimited list of two of the OPTION elements VALUE 
	attributes, and the MULTIPLE attribute to 'multiple'. Display the card 
	and make sure that the variable named by the WML:NAME attribute is set 
	to an the value of the WML:VALUE attribute as a set of a 
	semicolon-delimited list of two options.
	</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="plane;car" multiple="multiple">
							<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>The value of the $$choice variable is $choice</p>
				<p>Is the initial value of the control &apos;Railway&apos; and &apos;Automobile&apos;?
					and the $$choice variable &apos;plane;car&apos;?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
</test>
