<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscript/core/lexical/case/8" class="A" scope="wmlscript" testtype="application" type="manual" source="wmls11#6.1.1" device="gateway">
  <assertion>When incorrect syntax is used for the keyword "agent" the Encoder will not encode the script and the Server will send an error indication to the Client.
</assertion>
  <notes>Ensure that case sensitivity violations are recognised by the WML Interpreter and the script is not interpreted.</notes>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<p>The script referenced by this
&nbsp;<a href="<script1>#main('test','card1')">link</a>&nbsp;uses incorrect case
for the keyword agent.</p>
<p mode="wrap">Did the browser report an error when trying to access the script? 
<br />
<yesno>
</p>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<resulturl>">
<postfield name="SUBMIT" value="no"/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
  <scripts>
    <script id="1">
      <![CDATA[
use meta user AGENT "Type" "Test";

extern function main(value, next) {

	var result = "fail";

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

}

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

