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

  $Author: richard $

  $Revision: 1.4 $

  $Log: 2,v $
  Revision 1.4  2002/06/06 14:16:38  richard
  new spec

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


-->
<test id="wml2/uabehaviour/navuiwmldo/overridebackkey/2" class="A" 
	scope="wml2" testtype="application" type="manual" source="wml2#5.10.2" 
	device="both">
	<assertion>When there is more than one WML:DO element with it's TYPE 
	attribute is set to 'prev', the first WML:DO element in the document 
	order must override the BACK key. 
	</assertion>
	<specnote>Create a card that holds two WML:DO element(set one after 
	the other), with their TYPE attribute set to 'prev'. Within both 
	WML:DO elements use a WML:GO element, each going to a different 
	card. Call the card and then press the back button and make sure you 
	are taken to the card set in the first WML:DO element.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<wml:do type="prev">
					<wml:go href="#card3" />
				</wml:do>
				<wml:do type="prev">
					<wml:go href="#card2" />
				</wml:do>
				<p>Please press the back button to take you to the third card.</p>
				<p>Is the back button available and, were you taken to card3 
					when you pressed it?
					<br />
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>This is card2 <br />
					You should not have reached this card. The test has failed.<br/>
					Now press the back button.
				</p>
			</wml:card>
			<wml:card id="card3" title="card3">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>This is card3 <br />
					Now press the back button and answer the question
				</p>
			</wml:card>
		]]>
	</method>
</test>
