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

	$Author: richard $

	$Revision: 1.9 $

	$Log: 3,v $
	Revision 1.9  2002/06/18 15:01:28  richard
	new way of writing for the multi selection
	
	Revision 1.8  2002/06/06 13:52:40  richard
	new spec

	Revision 1.7  2002/04/23 16:39:38  richard
	add a new autofailed

	Revision 1.6  2002/04/19 15:21:57  richard
	autofailed

	Revision 1.5  2002/03/15 10:21:43  richard
	the value must be an empty string and not the name attribute

	Revision 1.4  2002/03/15 09:56:39  richard
	rewrite test

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


-->
<test id="wml2/uabehaviour/formprocessing/forminteraction/checkboxcontrol/3" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.4" device="both">
	<assertion>When the WML:NAME attribute of the INPUT element is assigned, 
	the TYPE attribute of the INPUT element is set to 'checkbox', the named 
	variable must be set to a semicolon-delimited string of the VALUE 
	attributes of the selected INPUT elements that do not contain an empty 
	VALUE attribute.
	</assertion>
	<specnote>Create a card with three INPUT elements with the TYPE attribute 
	set to 'checkbox'. Set all WML:NAME attributes to the same name, and set 
	one of the VALUE attributes to an empty string. Select all the three 
	checkboxes and make sure that the value of the WML:NAME contains a 
	semicolon-delimited string of the VALUE attributes of the two selected 
	INPUT elements that have a VALUE attribute set .
	</specnote>
	<results>
		<result ci="true" resulttype="one">
			<name>test</name>
			<value>plane;car</value>
			<value>car;plane</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please select all the three checkboxes 
					and then Submit the Form
				</p>
				<form action="#card2">
					<fieldset>
						<p>Plane</p>
						<input type="checkbox" wml:name="choice" value="plane" />
						<p>Train</p>
						<input type="checkbox" wml:name="choice" value="" />
						<p>Car</p>
						<input type="checkbox" wml:name="choice" value="car" />
					</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>
