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

  $Author: richard $

  $Revision: 1.8 $

  $Log: 9,v $
  Revision 1.8  2002/06/16 09:58:34  richard
  remove the body element

  Revision 1.7  2002/04/26 09:00:44  richard
  xml not well formed

  Revision 1.6  2002/04/20 09:04:06  richard
  yesno

  Revision 1.5  2002/04/19 16:13:22  richard
  autofailed, missing / or extra / on wml:carcd element
  move the fragment into a page document

  Revision 1.4  2002/02/27 14:57:04  richard
  rewrite tests,correct bug, pass as auto

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


-->
<test id="wml2/uabehaviour/navigationreference/prevtask/9" class="A" 
	scope="wml2" testtype="application" type="manual" source="wml2#5.3.2" 
	device="both">
	<assertion>When the WML:PREV task is executed, and the 
	WML:USE-XML-FRAGMENTS attribute in the destination document is set to 
	'false', and the document contains a matching card ID attribute, the 
	fragment identifier of the target URI must be the card with the matching 
	card ID attribute.
	</assertion>
	<specnote>Create a document that contains at least two cards
	(card1 &amp; card2), and sets the WML:USE-XML-FRAGMENTS to 'false'. Card2 
	could hold a link to card3. First call card2 using a fragment identifier 
	that matches the ID attribute of the card, then click the link to go to 
	card3(card3 will contain the WML:PREV task). Next click the back button 
	and make sure you are taken back to card2.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card newcontext="true" id="main">
				<wml:onevent type="enterforward">
					<wml:go href="[[page1]]" />
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
		]]>
  </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="false">
					<head>
						<title>prev task 9</title>
					</head>
						<wml:card newcontext="true" id="main" title="main">
							<p>This is card1
								Please go to card2
							</p>
							<wml:do type="accept">
								<wml:go href="#card2" />
							</wml:do>
						</wml:card>
						<wml:card id="card2" title="card2">
							<p>This is card2
								Please go to #pass and then return
							</p>
							<wml:do type="accept">
								<wml:go href="#card3" />
							</wml:do>
							<p>When pressing the back button in card3, were you taken back to card2?
								<br/>
								[[yesno]]
							</p>
						</wml:card>
						<wml:card id="card3" title="card3">
							<wml:do type="accept" title="prev">
								<wml:prev />
							</wml:do>
							<p>This is card3.<br />
								Now go back to card2
							</p>
						</wml:card>
				</html>
			]]>
		</page>
	</pages>
</test>
