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

	$Author: richard $

	$Revision: 1.2 $

	$Log: 17,v $
	Revision 1.2  2002/06/18 15:44:10  richard
	change the way of writing the multiple values
	
	Revision 1.1  2002/06/06 13:50:46  richard
	new spec

	Revision 1.9  2002/04/23 12:34:18  richard
	missing autofailed in the first card

	Revision 1.8  2002/04/19 15:25:12  richard
	autofailed

	Revision 1.7  2002/03/14 16:51:02  richard
	 rewrite test

	Revision 1.6  2002/03/14 13:51:18  richard
	in fact the test 4 is different from the test 5 and must be added, see notes

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


-->
<test id="wml2/uabehaviour/formprocessing/forminteraction/menucontrol/17" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.3" device="both">
	<assertion>When multiple selections are permitted, the NAME attribute 
	of the SELECT element is used to name the control variable, the VALUE 
	attributes of a selected OPTION elements is not specified and the
	content of this selected elements is not specified, this option must
	be ignored in the semicolon-delimited string, result, of the control 
	variable.
	</assertion>
	<specnote>Create a card with three OPTION elements within a SELECT 
	element. Unspecify the VALUE attribute and the content of the first
	OPTION element. Unspecify the VALUE attribute of the second OPTION 
	element but set its content. Finally set the VALUE attribute and content
	of the last OPTION element. Display the card and select the three 
	options. This could take you to another card which will display the 
	control variables value. Make sure that the variable is set to a 
	semicolon-delimited string of the content of the second OPTION element 
	and of the value of the VALUE attribute of the last OPTION element. 
	</specnote>
	<results>
		<result ci="true" resulttype="one">
			<name>test</name>
			<value>railway;car</value>
			<value>car;railway</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please Choose the airplane and the automobile options 
					and Submit the form
				</p>
				<form action="#card2">
					<fieldset>
						<p>Choice</p>
						<select name="choice" multiple="multiple">
							<option></option>
							<option>railway</option>
							<option value="car">automobile</option>
						</select>
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:onevent type="enterforward">
					<wml:go href="[[resulturl]]">
						<wml:postfield name="test" value="$choice" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
		]]>
	</method>
</test>
