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

	$Author: richard $

	$Revision: 1.6 $

	$Log: 12,v $
	Revision 1.6  2002/06/17 09:09:55  richard
	change the test to allow to answer the question more easily,
	could break the est suite if the user agent refuses to download the error card
	
	Revision 1.5  2002/04/20 08:18:21  richard
	yesno

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

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


-->
<test id="wml2/uabehaviour/eventmodel/eventbindings/typedevents/12" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.6.3.1" device="both">
	<assertion>When conflicting event bindings are used within an element, 
	they must be treated as an error.
	</assertion>
	<specnote>Create a card with two ENTERFORWARD event bindings within the 
	same scope. Each event binding must set a variable that the card will 
	display. Display the card and make sure that neither variable is set.
	</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 try to go to this <a href="#carderror">card</a></p>
				<p>Did an error happen and neither card2 or card3 have been displayed?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>If you reach this card, the test has failed</p>
				<p>Please Go back to card1</p>
			</wml:card>
			<wml:card id="card3" title="card3">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>If you reach this card, the test has failed</p>
				<p>Please Go back to card1</p>
			</wml:card>
			<wml:card id="carderror" title="carderror">
				<wml:onevent type="enterforward">
					<wml:go href="#card2" />
				</wml:onevent>
				<wml:onevent type="enterforward">
					<wml:go href="#card3" />
				</wml:onevent>
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>Please Go back to card1</p>
			</wml:card>
		]]>
	</method>
</test>
