<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscriptlib/url/resolve/1" 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, where BaseURL is an absolute URL, the function returns
an absolute URL derived from the combination of BaseURL and EmbeddedURL.
</assertion>
  <results>
    <result ci="true">
      <name>test</name>
      <value>http://foo.com/bar</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://foo.com/";
	var embed = "/bar";
	result = URL.resolve(base, embed);

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

