<?xml version="1.0" encoding="UTF-8"?>
<test id="wae/media/wmlscript/wmlsrules/1" class="A" scope="wae" 
	testtype="application" type="manual" source="wae#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[
			<card newcontext="true" id="main">
				<p>The script referenced by this 
					<a href="<script1>#main('card1')">link</a> 
					displays a variable.
				</p>
				<p mode="wrap">Is the variable "text" set ?
					<br />
					<yesno>
				</p>
			</card>
		]]>
	</method>
	<cards>
		<card id="1">
			<![CDATA[
				<card id="card1">
					<p>Test : $test</p>
				</card>
			]]>
		</card>
	</cards>
	<scripts>
		<script id="1">
			<![CDATA[
extern function main(next)
{
	var test       = "wmlsrules";

	WMLBrowser.setVar ('test', test);
	WMLBrowser.go ('#' + next);

}
			]]>
		</script>
	</scripts>
</test>
