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

  $Author: richard $

  $Revision: 1.6 $

  $Log: 2,v $
  Revision 1.6  2002/04/20 16:29:21  richard
  one fieldset for the checkboxes

  Revision 1.5  2002/04/20 08:21:37  richard
  yesno

  Revision 1.4  2002/03/13 17:07:37  richard
   rewrite test including forms

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


-->
<test id="wml2/uabehaviour/formprocessing/forminitialisation/checkboxcontrol/2" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.4" device="both">
  <assertion>When the WML:NAME attribute of the INPUT element is specified, 
  the TYPE attribute is set to 'checkbox', and the variable named by the 
  WML:NAME attribute has not been pre-set, there must be no pre-selected 
  checkboxes.
  </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 give 
  each VALUE attribute a seperate value. Display the card, make sure all 
  checkboxes are displayed, and that none of them are pre-checked.
  </specnote>
  <results>
    <result ci="true">
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
  			<form action="#card3">
     			<fieldset>
  					<p>Plane</p>
    				<input type="checkbox" wml:name="choice" value="plane" />
  					<p>Train</p>
    				<input type="checkbox" wml:name="choice" value="train" />
  					<p>Car</p>
    				<input type="checkbox" wml:name="choice" value="car" />
    			</fieldset>	
  				<fieldset>
   					<input type="submit" value="submit" />
   				</fieldset>
   			</form>
				<p>Are all checkboxes unchecked?
					<br/>
  					[[yesno]]
  				</p>
			</wml:card>
		]]>
  </method>
</test>
