<?xml version="1.0" encoding="UTF-8"?>
<test id="wml/events/setvar/2" class="A" scope="wml" testtype="application" type="auto" source="wml13#9.4" device="both">
  <assertion>When a SETVAR element contains a NAME attribute that evaluates to a
legal variable name, the value of that variable (in the current browser
context) is set to the value of the VALUE attribute.
</assertion>
  <results>
    <result>
      <name>var</name>
      <value>pass</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<onevent type="onenterforward">
<go href="#card1">
<setvar name="test" value="pass"/>
</go>
</onevent>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<responseurl>">
<postfield name="var" value="$test"/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
</test>

