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

  $Author: richard $

  $Revision: 1.5 $

  $Log: 8,v $
  Revision 1.5  2002/04/25 12:54:54  richard
  change the location on the onpiick attribute

  Revision 1.4  2002/03/16 17:17:20  richard
  rewrite test

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


-->
<test id="wml2/uabehaviour/eventmodel/eventbindings/typedevents/8" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.6.3.1" device="both">
  <assertion>When an OPTION element contains a WML:ONPICK attribute set to 
  a URL, and the option is chosen, the event must be processed.
  </assertion>
  <specnote>Create a card that holds an OPTION element with a WML:ONPICK 
  attribute set to navigate to a card when it is chosen. Display the card, 
  choose the associated option, and make sure that the user agent 
  navigates to the second card.
  </specnote>
  <results>
    <result ci="true">
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please select the Railway option</p>
				<form action="#card3">
     			<fieldset>
  					<p>Choice</p>
	    			<select wml:name="choice">
  	    			<option value="plane">Airplane</option>
			  			<option wml:onpick="#card2" value="train">Railway</option>
							<option value="car">Automobile</option>
						</select>
	   			</fieldset>
  				<fieldset>
   					<input type="submit" value="submit" />
   				</fieldset>
   			</form>
				<p>If nothing happened by selecting the Railway option, the test has failed</p>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
  			<wml:onevent type="enterforward">
  				<wml:go href="[[resulturl]]">
  					<wml:postfield name="test" value="pass" />
  					[[sessionvars]]
  				</wml:go>
  			</wml:onevent>
  			[[auto_failed]]
  		</wml:card>
		]]>
  </method>
</test>
