test194.txml 837 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0"?>
  2. <!-- we test that specifying an illegal target for <send> causes the event error.execution to be raised. If it does,
  3. we succeed. Otherwise we eventually timeout and fail. -->
  4. <scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  5. <state id="s0">
  6. <onentry>
  7. <!-- should cause an error -->
  8. <send conf:illegalTarget="" event="event2"/>
  9. <!-- this will get added to the external event queue after the error has been raised -->
  10. <send event="timeout"/>
  11. </onentry>
  12. <!-- once we've entered the state, we should check for internal events first -->
  13. <transition event="error.execution" conf:targetpass=""/>
  14. <transition event="*" conf:targetfail=""/>
  15. </state>
  16. <conf:pass/>
  17. <conf:fail/>
  18. </scxml>