<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscript/core/pragmas/external/1" class="B" scope="wmlscript" testtype="application" type="manual" source="wmls11#6.7.1" device="gateway">
  <assertion>When multiple url pragma declarations are defined with the same local identifier name within a single compilation unit the Encoder will not encode the script and the Server will send an error indication to the Client.
</assertion>
  <specnote>New for June 2000.  It is assumed that the Encoder will not encode the script and the Server will send an error indication to the Client.  On receipt of this error the Client shall display an error to the Operator with a means to continue browser navigation.  This test has now been class B until WAE decide on how multiple URL pragma declarations are to handled, please see PR2361 for the ruling.</specnote>
  <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()">link</a>&nbsp;uses repeated local names for url pragma declarations.
</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 url OtherScript "<script2>";
use url OtherScript "<script3>";

extern function main() {

    return OtherScript#getval ();

}
]]>
    </script>
    <script id="2">
      <![CDATA[
extern function getval ()
{

    return 10;

}

]]>
    </script>
    <script id="3">
      <![CDATA[
extern function getvalue ()
{

    return 10;
    
]]>
    </script>
  </scripts>
</test>

