test286.txml 599 B

123456789101112131415161718192021222324
  1. <?xml version="1.0"?>
  2. <!-- test that assigment to a non-declared var causes an error. the transition on foo catches the case
  3. where no error is raised -->
  4. <scxml xmlns="http://www.w3.org/2005/07/scxml"
  5. xmlns:conf="http://www.w3.org/2005/scxml-conformance" version="1.0" conf:datamodel="" initial="s0">
  6. <state id="s0">
  7. <onentry>
  8. <assign conf:invalidLocation="" conf:expr="1"/>
  9. <raise event="foo"/>
  10. </onentry>
  11. <transition event="error.execution" conf:targetpass=""/>
  12. <transition event="*" conf:targetfail=""/>
  13. </state>
  14. <conf:pass/>
  15. <conf:fail/>
  16. </scxml>