<?xml version="1.0" encoding="UTF-8"?>
<!--

  $Author: richard $

  $Revision: 1.6 $

  $Log: 2,v $
  Revision 1.6  2002/04/23 08:42:27  richard
  change the reset button but remains untestable

  Revision 1.5  2002/03/16 14:34:02  richard
  put as untestable

  Revision 1.4  2002/01/29 12:12:28  gb
  Modified loads of tests to fix mostly syntatic errors, including non quoting of attribute values and the incorrect use of macros, usually [[autofailed]].
  Modified Files:
   	wml2/markup/contextandnav/wmlanchorelement/3
   	wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/1
   	wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/2
   	wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/3
   	wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/4
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/1
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/11
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/12
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/2
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/3
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/4
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/5
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/6
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/7
  	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/8
   	wml2/markup/formsmodule/inputelementformat/wmlformatattribute/9
   	wml2/markup/formsmodule/wmlonpickattribute/1
   	wml2/markup/formsmodule/wmlonpickattribute/2
   	wml2/markup/formsmodule/wmlonpickattribute/3
   	wml2/markup/structuremodule/bodyelement/1
   	wml2/markup/structuremodule/wmlcardelement/1
   	wml2/markup/structuremodule/wmlcardelement/2
   	wml2/markup/structuremodule/wmlcardelement/3
   	wml2/uabehaviour/attribexplang/1
   	wml2/uabehaviour/attribexplang/wmlvariable/regendocument/1
   	wml2/uabehaviour/attribexplang/wmlvariable/regendocument/2
   	wml2/uabehaviour/attribexplang/wmlvariable/validation/2
   	wml2/uabehaviour/attribexplang/wmlvariable/variableref/1
   	wml2/uabehaviour/attribexplang/wmlvariable/variableref/2
   	wml2/uabehaviour/attribexplang/wmlvariable/variableref/5
   	wml2/uabehaviour/attribexplang/wmlvariable/variableref/6
   	wml2/uabehaviour/attribexplang/wmlvariable/variablescoping/declarations/2
  	wml2/uabehaviour/backkey/2
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/1
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/2
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/3
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/4
   	wml2/uabehaviour/eventmodel/eventbindings/typedevents/5

  Revision 1.3  2001/10/30 16:22:24  gb
  Modified all the test files in the wml2 directory such that it puts the <?xml?> declaration back at the top of the file, before the comment.

  Revision 1.2  2001/10/08 21:56:12  gb
  Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/attribexplang/wmlvariable/regendocument/2" 
	class="B" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.5.1.7" device="both">
  <assertion>Before processing event bindings, the user agent must either 
  re-generate the presentation document, or perform an operation that is 
  indistinguishable from it.
  </assertion>
  <notes>Create a card contains a menu control with several options to 
  set alternate values for the variable 'x'(values should be the name of 
  a document). The card should also contain a WML:GO element set to e.g. 
  "http://www.example.com/$x", within a WML:ONEVENT element set to 'timer', 
  and a WML:TIMER element set to '100'. Call the card, choose an option, and 
  make sure that when the timer event occurs, you are taken to the card that 
  was chosen from the select list.
  </notes>
  <specnote>Untestable as to make the test run, this implies to change 
  the presentation settings and the modifications of the presentation are 
  implementation dependant.
  </specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
<![CDATA[
<wml:card id="main" title="main" newcontext="true">
  <wml:onevent type="enterforward">
    <wml:refresh>
      <wml:setvar name="choice" value="#main" />
    </wml:refresh>
  </wml:onevent>
  <wml:onevent type="timer">
    <wml:go href="$choice" />
  </wml:onevent>
  <wml:timer value="150" />
  <hr />
  <p>
    Please choose and option within 15 seconds and make sure you are taken to the corresponding card.
  <p>
    Choice:
    <form action="#card2">
			<fieldset>
	      <select wml:name="choice">
		      <option value="#card2">card2</option>
  	      <option value="#card3">card3</option>
 	       <option value="#card4">card4</option>
      </select>
			</fieldset>
			<fieldset>
	      <input type="submit" value="submit">
  	    <input type="reset" value="reset">
			</fieldset>
    </form>
  </p>
  <hr />
  <p wml:mode="wrap">When the link was clicked, were you taken to the card that was chosen from the select list?
    <br />
[[yesno]]
  </p>
</wml:card>
<wml:card id="card2" title="card2">
  <wml:do role="back">
    <wml:prev />
  </wml:do>
  <p>
    This is card2
  </p>
  <p>
    Now go back
  </p>
</wml:card>
<wml:card id="card3" title="card3">
  <wml:do role="back">
    <wml:prev />
  </wml:do>
  <p>
    This is card3
  </p>
  <p>
    Now go back
  </p>
</wml:card>
<wml:card id="card4" title="card4">
  <wml:do role="back">
    <wml:prev />
  </wml:do>
  <p>
    This is card4
  </p>
  <p>
    Now go back
  </p>
</wml:card>
]]>
  </method>
</test>
