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

  $Author: richard $

  $Revision: 1.5 $

  $Log: 2,v $
  Revision 1.5  2002/04/19 14:18:29  richard
  yesno

  Revision 1.4  2002/03/26 16:39:24  richard
  rewrite test

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


-->
<test id="wml2/markup/eventsmodule/wmloneventelement/2" class="A" 
	scope="wml2" testtype="application" type="manual" 
	source="wml2#6.15.1" device="both">
	<assertion>When the WML:ONEVENT element is used and the TYPE attribute 
	does not correspond to a legal event for the immediately enclosing 
	element, the user agent must ignore the WML:ONEVENT element.
	</assertion>
	<specnote>Create a card and insert a WML:ONEVENT element with its TYPE
	attribute set to an unknown type. Make sure that the user agent ignores 
	the event binding by not executing the task.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<wml:onevent type="richardopengroup">
					<wml:go href="#card2"/>
				</wml:onevent>
				<wml:timer name="timer" value="20"/>
				<p>You should be taken to card3 in 5 secondes</p>
				<p>Did you remain in this card after a period of 2 seconds?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>This is card 2<br />
					You shouldn't reach this card. The test has failed.<br/>
					Now go back to card1
				</p>
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
			</wml:card>
		]]>
	</method>
</test>
