diff options
Diffstat (limited to 'test/w3c/namespace/test377.scxml')
-rw-r--r-- | test/w3c/namespace/test377.scxml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/w3c/namespace/test377.scxml b/test/w3c/namespace/test377.scxml new file mode 100644 index 0000000..ddd9e0a --- /dev/null +++ b/test/w3c/namespace/test377.scxml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- test that onexit handlers are executed in document order. event1 should be raised before event2 --> +<scxml:scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" xmlns:scxml="http://www.w3.org/2005/07/scxml" datamodel="ecmascript" version="1.0"> + <scxml:state id="s0"> + <scxml:onexit> + <scxml:raise event="event1"/> + </scxml:onexit> + <scxml:onexit> + <scxml:raise event="event2"/> + </scxml:onexit> + <scxml:transition target="s1"/> + </scxml:state> + <scxml:state id="s1"> + <scxml:transition event="event1" target="s2"/> + <scxml:transition event="*" target="fail"/> + </scxml:state> + <scxml:state id="s2"> + <scxml:transition event="event2" target="pass"/> + <scxml:transition event="*" target="fail"/> + </scxml:state> + <scxml:final id="pass"> + <scxml:onentry> + <scxml:log label="Outcome" expr="'pass'"/> + </scxml:onentry> + </scxml:final> + <scxml:final id="fail"> + <scxml:onentry> + <scxml:log label="Outcome" expr="'fail'"/> + </scxml:onentry> + </scxml:final> +</scxml:scxml> |