<?xml version="1.0" encoding="UTF-8"?>
<test id="wae2/media/wmlscript/wmlsrules/1" class="A" scope="wae2" 
	testtype="application" type="manual" source="wae2#6.4.2" device="both">
	<assertion>When a WAE user agent requests content that includes 
	WMLScript it must process it.
	</assertion>
	<specnote>Get the user to access a document that contains WMLScript.
	This could just set a variable.  Then show a page that displays this 
	variable. Make sure that the page is displayed and the variable shown 
	as set.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>The script referenced by this 
					<a href="[[script1]]#main('card2')">link</a> 
					displays a variable in the next card.
				</p>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>This is card2</p>
				<p>Test : $test</p>
				<p>Is the variable "text" set ?
					<br />
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
	<scripts>
		<script id="1">
			<![CDATA[
extern function main(next) {
	var test       = "wmlsrules";

	WMLBrowser.setVar ('test', test);
	WMLBrowser.go ('#' + next);
}
			]]>
		</script>
	</scripts>
</test>
