diff options
Diffstat (limited to 'test/w3c/lua/test286.scxml')
-rw-r--r-- | test/w3c/lua/test286.scxml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/w3c/lua/test286.scxml b/test/w3c/lua/test286.scxml new file mode 100644 index 0000000..7c47d91 --- /dev/null +++ b/test/w3c/lua/test286.scxml @@ -0,0 +1,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> |