summaryrefslogtreecommitdiffstats
path: root/test/w3c/lua/test456.scxml
blob: 319c1a41c82fe3fc451bcb479c9616b6a82ce6d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" standalone="no"?>
<!-- we can't test that _any_ ecmascript is valid inside <script>, so we
just run a simple one and check that it can update the data model. -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" datamodel="ecmascript">
  <datamodel>
    <data expr="0" id="testvar1"/>
  </datamodel>
  <state id="s0">
    <onentry>
      <script>
      Var1+=1
      </script>
    </onentry>
    <transition cond="testvar1 == 1" target="pass"/>
    <transition target="fail"/>
  </state>
  <final id="pass"/>
  <final id="fail"/>
</scxml>