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

<test id="wml2/uabehaviour/formprocessing/forminteraction/resetbuttoncontrol/1" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.7" device="both">
	<assertion>When the reset button is launched, the user agent must reset
	the current value of each control to its initial value.
	</assertion>
	<specnote>Create a card with one text input control (its TYPE attribute
	set to 'text'), one text input control (its TYPE attribute set to 
	'password'), one textareas, two checkboxes, two radio control and two menu 
	controls, one with the WML:NAME assigned and the other with the 
	WML:INAME assigned. Add a reset buton to the form. Modify all the initial
	value of the form. Reset the form and make sure that the initial value 
	are displayed. 
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method> 
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<wml:onevent type="enterforward">
					<wml:go href="#card2">
						<wml:setvar name="imenu" value="2" />
						<wml:setvar name="menu" value="car" />
						<wml:setvar name="check" value="train" />
						<wml:setvar name="radioch" value="car" />
						<wml:setvar name="xtext" value="hello" />
						<wml:setvar name="recipient" value="this" />
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>Modify the values of all the control then press the reset button
				</p>
				<form action="#card3">
					<fieldset>
						<p>input:</p>
						<input type="text" wml:name="xtext" />
					</fieldset>
					<fieldset>
						<p>input:</p>
						<input type="password" wml:name="xpass"  />
					</fieldset>
					<fieldset>
						<p>textarea:</p>
						<textarea wml:name="recipient" rows="2" cols="10" />
					</fieldset>
					<fieldset>
						<p>Menu control and WML:INAME</p>
						<select wml:name="choice" wml:iname="imenu">
							<option value="plane">Airplane</option>
							<option value="train">Railway</option>
							<option value="car">Automobile</option>
						</select>
					</fieldset>
					<fieldset>
						<p>Menu control and WML:NAME</p>
						<select wml:name="menu" >
							<option value="plane">Airplane</option>
							<option value="train">Railway</option>
							<option value="car">Automobile</option>
						</select>
					</fieldset>
					<fieldset>
						<p>Plane</p>
						<input type="checkbox" wml:name="check" value="plane" />
						<p>Train</p>
						<input type="checkbox" wml:name="check" value="train" />
					</fieldset>
					<fieldset>
						<p>Train</p>
						<input type="radio" wml:name="radioch" value="train" />
						<p>Car</p>
						<input type="radio" wml:name="radioch" value="car" />
					</fieldset>	
					<fieldset>
						<input type="submit" value="submit" />
						<input type="reset" value="reset" />
					</fieldset>
				</form>
				<p>Are the initial values of the controls redisplayed when pressing
					the &quot;reset&quot; button?
					<br/>
					[[yesno]]
			</p>
			</wml:card>
		]]>
	</method>
</test>
