summaryrefslogtreecommitdiffstats
path: root/test/w3c/lua/test286.scxml
blob: 7c47d918c0ff6048d0231694609eb249349eb53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" standalone="no"?>
<!-- test that assigment to a non-declared var causes an error.  the transition on foo catches the case
where no error is raised -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initial="s0" datamodel="lua">
  <state id="s0">
    <onentry>
      <assign expr="1" location=""/>
      <raise event="foo"/>
    </onentry>
    <transition event="error.execution" target="pass"/>
    <transition event="*" target="fail"/>
  </state>
  <final id="pass"/>
  <final id="fail"/>
</scxml>