test185.txml 699 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0"?>
  2. <!-- we test that <send> respects the delay specification. If it does, event1 arrives before event2
  3. and we pass. Otherwise we 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. <send event="event2" conf:delay="1"/>
  8. <send event="event1"/>
  9. </onentry>
  10. <transition event="event1" target="s1"/>
  11. <transition event="*" conf:targetfail=""/>
  12. </state>
  13. <state id="s1">
  14. <transition event="event2" conf:targetpass=""/>
  15. <transition event="*" conf:targetfail=""/>
  16. </state>
  17. <conf:pass/>
  18. <conf:fail/>
  19. </scxml>