test488.txml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0"?>
  2. <!-- test that illegal expr in <param> 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. <transition event="done.state.s0" conf:targetfail="">
  9. </transition>
  10. <state id="s01">
  11. <transition target="s02"/>
  12. </state>
  13. <final id="s02">
  14. <donedata>
  15. <param conf:illegalExpr="" name="someParam"/>
  16. </donedata>
  17. </final>
  18. </state>
  19. <!-- if we get here, we received the error event. Now check that the done
  20. event has empty event.data -->
  21. <state id="s1">
  22. <transition event="done.state.s0" conf:emptyEventData="" conf:targetpass=""/>
  23. <transition event="*" conf:targetfail=""/>
  24. </state>
  25. <conf:pass/>
  26. <conf:fail/>
  27. </scxml>