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

  $Author: richard $

  $Revision: 1.1 $

  $Log: 25,v $
  Revision 1.1  2002/06/06 13:50:47  richard
  new spec

  Revision 1.5  2002/04/20 08:36:17  richard
  yesno

  Revision 1.4  2002/03/14 16:51:03  richard
   rewrite test

  Revision 1.3  2001/10/30 16:22:42  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/25" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.3" device="both">
	<assertion>When the variable named by the WML:INAME of the SELECT element 
	is changed, the user agent must update it each time, before each and 
	every task invocation.
	</assertion>
	<specnote>Create a card with three SELECT elements. Also use a WML:GETVAR 
	element to display the value of the variable. The card could contain a 
	submit button which could take the user to a second card which will 
	display the variables value. Call the card, choose an option that is 
	different from the default, and navigate to the second card. The value 
	of the variable should be different from the first one displayed.
	</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 Select an option, Submit the form.
					then go back to this card, choose another option and 
					submit again the from.
					Finally Go back 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>Was the value of the $$ichoice variable equal to the 
					index of the selection made each time?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>The value of the $$ichoice variable is <wml:getvar name="ichoice" /></p>
				<p>Now go back</p>
			</wml:card>
		]]>
	</method>
</test>
