<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscriptlib/dialogs/confirm/2" class="A" scope="wmlscriptlib" testtype="application" type="manual" source="wmlssl12#12.2" device="both">
  <assertion>When the Dialogs.confirm function is called with the parameters string
Message, string Ok, and string Cancel, the system displays the message Message
and two reply alternatives from Ok and Cancel. If the user selects
the Cancel string, the function returns false.
</assertion>
  <results>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <strings>
    <string id="1">Dialogs.confirm("Select 'no' to continue", 'yes', 'no')
</string>
  </strings>
  <method>
    <![CDATA[<card newcontext="true" id="main"> <onevent type="onenterforward">
<go 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 tmp = <string1>;

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

