diff options
Diffstat (limited to 'test/w3c/lua/test376.scxml')
-rw-r--r-- | test/w3c/lua/test376.scxml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/w3c/lua/test376.scxml b/test/w3c/lua/test376.scxml new file mode 100644 index 0000000..d0f6911 --- /dev/null +++ b/test/w3c/lua/test376.scxml @@ -0,0 +1,20 @@ +<?xml version="1.0" standalone="no"?> +<!-- test that each onentry handler is a separate block. The <send> of event1 will cause an error but + the increment to var1 should happen anyways --> +<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" datamodel="lua"> + <datamodel> + <data expr="1" id="testvar1"/> + </datamodel> + <state id="s0"> + <onentry> + <send event="event1" target="xxxxxxxxx"/> + </onentry> + <onentry> + <assign location="testvar1" expr="testvar1+1"/> + </onentry> + <transition cond="testvar1 == 2" target="pass"/> + <transition target="fail"/> + </state> + <final id="pass"/> + <final id="fail"/> +</scxml> |