test303.txml 701 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- to test that scripts are run as part of executable content, we check that it changes the value of a var at the
  3. right point. This test is valid only for datamodels that support scripting -->
  4. <scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml"
  5. conf:datamodel="" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0">
  6. <datamodel>
  7. <data conf:id="1" conf:expr="0"/>
  8. </datamodel>
  9. <state id="s0">
  10. <onentry>
  11. <assign conf:location="1" conf:expr="2"/>
  12. <conf:script/>
  13. </onentry>
  14. <transition conf:idVal="1=1" conf:targetpass=""/>
  15. <transition conf:targetfail=""/>
  16. </state>
  17. <conf:pass/>
  18. <conf:fail/>
  19. </scxml>