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

  $Author: richard $

  $Revision: 1.10 $

  $Log: 4,v $
  Revision 1.10  2002/06/06 13:50:47  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/4" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.3" device="both">
	<assertion>When the control only permits a single selection, the 
	WML:INAME attribute of the SELECT element is specified, the index
	numbering must begin at one and increase monotonically. 
	</assertion>
	<specnote>Create a card with three OPTION elements within a SELECT 
	element. Display the card and select the first of the options. This could 
	take you to another card which will display the control variables value. 
	Make sure that the value of the variable is '1'. Then go back to the 
	first card and select the second option. Submit and make sure that the 
	value of the varibale is '2'. Finally go back, select the last option 
	and make sure that that the value of the variable is '3'.
	</specnote>
	<results>
		<result ci="true">
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please 
					1) Select the first option and make sure that the value displayed is 1
					2) Then go back to this card, select the second option and make sure
					that the value displayed is 2
					3) Go back again to this card, select the last option and make 
					sure that the value displayed is 3 
					4) Finally go back to this card and answer the question 
				</p>
				<form action="#card2">
					<fieldset>
						<p>Choice</p>
						<select wml:iname="ichoice">
							<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>Were the value of the $$ichoice variable displayed 
					1, then 2 and finally 3?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>This is card 2<br />
					Check the value of the variable
					$$ichoice = $(ichoice)<br />
					end use the back button to go back to the previous card
				</p>
			</wml:card>	
		]]>
	</method>
</test>
