test528.txml 947 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0"?>
  2. <!-- test that illegal 'expr' produces error.execution and empty event.data -->
  3. <scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" conf:datamodel="" initial="s0">
  4. <state id="s0" initial="s01">
  5. <!-- we should get the error before the done event -->
  6. <transition event="error.execution" target="s1"/>
  7. <transition event="done.state.s0" conf:targetfail=""/>
  8. <state id="s01">
  9. <transition target="s02"/>
  10. </state>
  11. <final id="s02">
  12. <donedata>
  13. <content conf:illegalExpr=""/>
  14. </donedata>
  15. </final>
  16. </state>
  17. <!-- if we get here, we received the error event. Now check that the done
  18. event has empty event.data -->
  19. <state id="s1">
  20. <transition event="done.state.s0" conf:emptyEventData="" conf:targetpass=""/>
  21. <transition event="*" conf:targetfail=""/>
  22. </state>
  23. <conf:pass/>
  24. <conf:fail/>
  25. </scxml>