<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscriptlib/url/resolve/4" class="A" scope="wmlscriptlib" testtype="application" type="auto" source="wmlssl12#10.11" device="both">
  <assertion>When the URL.resolve function is called with parameters string BaseURL
and string EmbeddedURL, and the BaseURL's path component is an empty string. The function returns an absolute URL derived from the combination of BaseURL and EmbeddedURL with a single slash character ("/") assumed as the path.
</assertion>
  <specnote>New assertion for wmlssl June 2000</specnote>
  <results>
    <result>
      <name>test</name>
      <value>http:///com</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<onevent type="onenterforward">
<go sendreferer="true" href="<script1>#main('test','card1')"/>
</onevent>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<resulturl>">
<postfield name="test" value="$test"/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
  <scripts>
    <script id="1">
      <![CDATA[extern function main(myvar,next) {
	var result = 'fail';
	var base = "http://";
	var embed = "com";
	result = URL.resolve(base, embed);

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

