summaryrefslogtreecommitdiffstats
path: root/test/w3c/lua/test387.scxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-08 00:20:56 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-08 00:20:56 (GMT)
commitdbd110e2b7eb08c65218a5f9d09ef12fdc62c04a (patch)
tree93444e4c106eeca34d928521bedbda8080410795 /test/w3c/lua/test387.scxml
parentd5e1f6397c52513018cd59972cf5ca8740de18eb (diff)
downloaduscxml-dbd110e2b7eb08c65218a5f9d09ef12fdc62c04a.zip
uscxml-dbd110e2b7eb08c65218a5f9d09ef12fdc62c04a.tar.gz
uscxml-dbd110e2b7eb08c65218a5f9d09ef12fdc62c04a.tar.bz2
First signs of Lua Datamodel
Diffstat (limited to 'test/w3c/lua/test387.scxml')
-rw-r--r--test/w3c/lua/test387.scxml85
1 files changed, 85 insertions, 0 deletions
diff --git a/test/w3c/lua/test387.scxml b/test/w3c/lua/test387.scxml
new file mode 100644
index 0000000..7ea485f
--- /dev/null
+++ b/test/w3c/lua/test387.scxml
@@ -0,0 +1,85 @@
+<?xml version="1.0" standalone="no"?>
+<!-- test that the default history state works correctly. From initial state s3 we take a transition to s0's default
+shallow history state. That should generate "enteringS011", which takes us to s4. In s4, we
+transition to s1's default deep history state. We should end up in s122, generating "enteringS122". Otherwise failure.-->
+<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s3" version="1.0" datamodel="lua">
+ <state id="s0" initial="s01">
+ <transition event="enteringS011" target="s4"/>
+ <transition event="*" target="fail"/>
+ <history type="shallow" id="s0HistShallow">
+ <transition target="s01"/>
+ </history>
+ <history type="deep" id="s0HistDeep">
+ <transition target="s022"/>
+ </history>
+ <state id="s01" initial="s011">
+ <state id="s011">
+ <onentry>
+ <raise event="enteringS011"/>
+ </onentry>
+ </state>
+ <state id="s012">
+ <onentry>
+ <raise event="enteringS012"/>
+ </onentry>
+ </state>
+ </state>
+ <state id="s02" initial="s021">
+ <state id="s021">
+ <onentry>
+ <raise event="enteringS021"/>
+ </onentry>
+ </state>
+ <state id="s022">
+ <onentry>
+ <raise event="enteringS022"/>
+ </onentry>
+ </state>
+ </state>
+ </state>
+ <state id="s1" initial="s11">
+ <transition event="enteringS122" target="pass"/>
+ <transition event="*" target="fail"/>
+ <history type="shallow" id="s1HistShallow">
+ <transition target="s11"/>
+ </history>
+ <history type="deep" id="s1HistDeep">
+ <transition target="s122"/>
+ </history>
+ <state id="s11" initial="s111">
+ <state id="s111">
+ <onentry>
+ <raise event="enteringS111"/>
+ </onentry>
+ </state>
+ <state id="s112">
+ <onentry>
+ <raise event="enteringS112"/>
+ </onentry>
+ </state>
+ </state>
+ <state id="s12" initial="s121">
+ <state id="s121">
+ <onentry>
+ <raise event="enteringS121"/>
+ </onentry>
+ </state>
+ <state id="s122">
+ <onentry>
+ <raise event="enteringS122"/>
+ </onentry>
+ </state>
+ </state>
+ </state>
+ <state id="s3">
+ <onentry>
+ <send event="timeout" delay="1s"/>
+ </onentry>
+ <transition target="s0HistShallow"/>
+ </state>
+ <state id="s4">
+ <transition target="s1HistDeep"/>
+ </state>
+ <final id="pass"/>
+ <final id="fail"/>
+</scxml>