<?xml version="1.0"?>
<!-- @ Copyright 1998-2003 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. @ -->
<vxml version="2.0"
  xmlns="http://www.w3.org/2001/vxml"
  xmlns:conf="http://www.w3.org/2002/vxml-conformance">

 <catch>
  <conf:fail expr="'document caught event ' + _event"/>
 </catch>

 <form id="dorothy">

  <var name="startTime" expr="new Date ( )"/>

  <field name="tinman">

   <prompt bargein="false">
    Say Chicago now, before the prompt ends.
    <break time="10s"/>
    Have you spoken yet?
   </prompt>

   <conf:grammar utterance="alpha"/>

   <filled>
    <var name="elapsed" expr="( new Date ( ) ) - startTime"/>

    <conf:comment>
     If you were able to barge in, then this test failed.  If you were not
     able to barge in, then this test passed.  Elapsed time from start to
     filled was <value expr="elapsed"/>.  If it was less than ten seconds,
     then odds are this test failed.
    </conf:comment>

    <if cond="elapsed &lt; 10000">
     <conf:fail expr="'Elapsed time was only ' + elapsed + ' ms.'"/>
    <else/>
     <conf:comment>
      Elapsed time was long enough, but that doesn't guarantee the test was
      successful.
     </conf:comment>
     <conf:pass/>
    </if>

   </filled>

  </field>

 </form>

</vxml>

