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

	$Author: richard $

	$Revision: 1.7 $

	$Log: 3,v $
	Revision 1.7  2002/06/16 16:14:18  richard
	rewrite the test because of the remove of the BODY element
	
	Revision 1.6  2002/04/26 08:00:38  richard
	not well formed, missing a end br

	Revision 1.5  2002/04/20 08:16:39  richard
	yesno

	Revision 1.4  2002/03/17 11:40:25  richard
	rewrite test

	Revision 1.3  2001/10/30 16:22:28  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/shadowing/3" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.6.3.3" device="both">
	<assertion>When a document holds an event binding at both document level 
	and card level, the card level event binding must override the document 
	level event binding.
	</assertion>
	<specnote>Create a document with two cards. Set a WML:ONEVENT	element 
	with the TYPE attribute set to 'enterforward' at document level, that 
	holds a WML:GO element, to go to a card (card3) of another document. 
	Set as well a WML:ONEVENT with the TYPE attribute set to 'enterforward'
	at card level and of both cards, holding a WML:GO element, to go to a 
	card card4. Go to card1 and card2, and make sure that each time, you 
	are brought directly to card4 and never reach card3. 
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<p>Select this
				<a href="[[page1]]">link</a>
				and then come back to this screen.
			</p>
			<p>Were you brought in card4 directly from card1 and card2,
				and never reached card3?
				<br/>
				[[yesno]]
			</p>
		]]>
	</method>
	<pages>
		<page id="1">
			<![CDATA[
				<?xml version="1.0" encoding="UTF-8"?>
				<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/wml20.dtd">
				<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wml="http://www.wapforum.org/2001/wml"
					wml:use-xml-fragments="true">
					<head>
						<title>Shadowing 2</title>
					</head>
					<wml:onevent type="enterforward">
						<wml:go href="[[page2]]" />
					</wml:onevent>
					<wml:card id="card1" title="card1" newcontext="true">
						<wml:onevent type="enterforward">
							<wml:go href="[[page3]]" />
						</wml:onevent>
						<p>This is card1</p>
						<p>Please note if you have been to card3 directly</p>
						<p>Now click this 
							<a href="#card2">link</a> to go to card2
							then come back 
							and finally return to the previous document
						</p>
						<wml:do type="prev" label="back" title="back">
							<wml:prev />
						</wml:do>
					</wml:card>
					<wml:card id="card2" title="card2">
						<wml:onevent type="enterforward">
							<wml:go href="[[page3]]" />
						</wml:onevent>
						<p>This is card2</p>
						<p>Please note if you have been to card3 directly</p>
						<p>Now Go back to card1</p>
						<wml:do type="prev" label="back" title="back">
							<wml:prev />
						</wml:do>
					</wml:card>
				</html>
			]]>
		</page>
		<page id="2">
			<![CDATA[
				<?xml version="1.0" encoding="UTF-8"?>
				<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/wml20.dtd">
				<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wml="http://www.wapforum.org/2001/wml"
					wml:use-xml-fragments="true">
					<head>
						<title>Shadowing 2 Page2</title>
					</head>
					<wml:card id="card3" title="card3" newcontext="true">
						<p>This is card3</p> 
						<p>If you reach this card the test has failed<br/>
							Now Go back and answer the question
						</p>					
						<wml:do type="prev" label="back" title="back">
							<wml:prev />
						</wml:do>
					</wml:card>
				</html>
			]]>
		</page>
		<page id="3">
			<![CDATA[
				<?xml version="1.0" encoding="UTF-8"?>
				<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/wml20.dtd">
				<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wml="http://www.wapforum.org/2001/wml"
					wml:use-xml-fragments="true">
					<head>
						<title>Shadowing 2 Page2</title>
					</head>
					<wml:card id="card4" title="card4" newcontext="true">
						<p>This is card4</p> 
						<p>Now Go back to the previous card using the Back Key</p>
						<wml:do type="prev" label="back" title="back">
							<wml:prev />
						</wml:do>
					</wml:card>
				</html>
			]]>
		</page>
	</pages>
</test>
