<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscriptlib/dialogs/alert/1" class="A" scope="wmlscriptlib" testtype="application" type="manual" source="wmlssl12#12.3" device="both">
  <assertion>When the Dialogs.alert function is called with a parameter string
Message, it displays the message to the user, waits for the user to confirm
that they have seen the message, and returns the empty string.
</assertion>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <strings>
    <string id="1">An alert
</string>
  </strings>
  <method>
    <![CDATA[<card newcontext="true" id="main"> <onevent type="onenterforward">
<go href="<script1>#main('card1','test')"/>
</onevent>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<p>Did the browser present a message that said "<string1>"?
<yesno>
</p>
</card>
]]>
    </card>
  </cards>
  <scripts>
    <script id="1">
      <![CDATA[extern function main(next, myvar) {
        var result = 'fail';
        var tmp = Dialogs.alert("<string1>");
        if (tmp == "") {
                result = 'pass';
        }
        WMLBrowser.setVar(myvar, result);
        WMLBrowser.go("#"+next);
        return 1;
}
]]>
    </script>
  </scripts>
</test>

