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

<test id="wae/features/uabehaviour/backkey/rules/5" class="A" 
	scope="wae" testtype="application" type="manual" source="wae#7.11.2.3" 
	device="client">
	<assertion>When there are more than one WML1 DO element with their TYPE 
	attribute set to 'prev', the WML1 user agent must override the default 
	behaviour of the BACK key with the task associated with the first DO 
	element. 
	</assertion>
	<specnote>Create a card with two DO element with their TYPE attribute set 
	to 'prev' and their associated task a GO element, pointing to two different
	cards. Make sure that the card pointed by the first DO element via the GO
	element is executed when using the BACK key.
	</specnote>
	<results>
		<result>
			<name>test</name>
			<value>pass</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<card newcontext="true" id="main">
				<p>Now use the back key to send the information to the server</p>
				<do type="prev" >
					<go href="<resulturl>">
						<postfield name="test" value="pass" />
						<sessionvars>
					</go>
				</do>
				<do type="prev" >
					<go href="#card2"/>
				</do>
				<auto_failed>
			</card>
		]]>
	</method>
	<cards>
		<card id="1">
			<![CDATA[
				<card id="card2">
					<p>This is card2<br/>
						If you reach this card, the test has failed
					</p>
				<auto_failed>
				</card>
			]]>
		</card>
	</cards>
</test>
