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

  $Author: richard $

  $Revision: 1.7 $

  $Log: 4,v $
  Revision 1.7  2002/04/19 15:43:55  richard
  autofailed

  Revision 1.6  2002/03/26 09:12:18  richard
  start wml:card extra /
  includes external decks

  Revision 1.5  2002/02/27 09:47:32  richard
  set the type of the test element as auto

  Revision 1.4  2002/02/26 13:55:32  richard
  rewrite the tests

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


-->
<test id="wml2/uabehaviour/navigationreference/gotask/4" class="A" scope="wml2" 
	testtype="application" type="auto" source="wml2#5.3.1" device="both">
  <assertion>When the WML:GO task is executed, and a fragment identifier is not 
  specified as part of the URI, the first card in the document must be the destination.
  </assertion>
  <specnote>Create a card with a link(without a fragment identifier) to a document 
  that holds several cards. Click the link and make sure you are taken to the first 
  card in the new document.
  </specnote>
  <results>
    <result ci="true">
      <name>test</name>
      <value>pass</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="true">
					<head>
						<title>Gotask 4</title>
					</head>
 					<wml:card id="card1" title="main">
	  				<wml:onevent type="enterforward">
    					<wml:go href="[[resulturl]]">
      						<wml:postfield name="test" value="pass" />
      						[[sessionvars]]
    					</wml:go>
  					</wml:onevent>
						[[auto_failed]]
					</wml:card>	
					<wml:card id="card2" title="main">
	  				<wml:onevent type="enterforward">
    					<wml:go href="[[resulturl]]">
      						<wml:postfield name="test" value="fail" />
      						[[sessionvars]]
    					</wml:go>
  					</wml:onevent>
						[[auto_failed]]
					</wml:card>	
				</html>
			]]>
		</page>
	</pages>
</test>

