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

<test id="wml2/markup/formsmodule/activationeventhandler/wmlonpickattribute/2" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#6.5.4.2" device="both">
	<assertion>When an multiple-selection list generates a pick event, due to 
	the user de-selecting an option, user must be taken to the card specified 
	by the URI, when the option is de-selected.
	</assertion>
	<specnote>Create a card that holds two or more OPTION elements that are 
	present, have the multiple attribute set to 'multiple', and contain 
	a WML:ONPICK attribute set to navigate to a card when 
	it is chosen. Display the card, de-select the associated option, and make 
	sure that the user agent navigates to the second card.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please De-Select the Railway option</p>
				<p>
					<form action="#card2">
						<fieldset>
							<p>Choice</p>
								<select wml:name="choice" wml:value="train" multiple="multiple">
									<option wml:onpick="#card1" value="plane">Airplane</option>
									<option wml:onpick="#card2" value="train">Railway</option>
									<option wml:onpick="#card3" value="car">Automobile</option>
								</select>
						</fieldset>
						<fieldset>
							<input type="submit" value="submit" />
							<input type="reset" value="reset" />
						</fieldset>
					</form>
				</p>
				<p>Were you taken to card2 when you de-selected option the Railway option?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card1" title="card1">
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
				<p>This is card 1<br />
					Now go back and answer the question.
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
				<p>This is card 2<br />
					Now go back and answer the question.
				</p>
			</wml:card>
			<wml:card id="card3" title="card3">
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
				<p>This is card 3<br />
					Now go back and answer the question.
				</p>
			</wml:card>
		]]>
	</method>
</test>
