summaryrefslogtreecommitdiffstats
path: root/test/issues
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-06-16 14:51:27 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-06-16 14:51:27 (GMT)
commitfa6b4f074d4be04d913d8b7dc062920341c34ecb (patch)
tree83ae475b184a3b1bccca2a69addcefb6c12d924e /test/issues
parented6aee05e2843be65c4ab445d79e70dc8dacc07b (diff)
downloaduscxml-fa6b4f074d4be04d913d8b7dc062920341c34ecb.zip
uscxml-fa6b4f074d4be04d913d8b7dc062920341c34ecb.tar.gz
uscxml-fa6b4f074d4be04d913d8b7dc062920341c34ecb.tar.bz2
Fixed issue86 and some more bug fixes
Diffstat (limited to 'test/issues')
-rw-r--r--test/issues/test-issue86.scxml36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/issues/test-issue86.scxml b/test/issues/test-issue86.scxml
new file mode 100644
index 0000000..a978d4b
--- /dev/null
+++ b/test/issues/test-issue86.scxml
@@ -0,0 +1,36 @@
+<scxml datamodel="lua" initial="Start" name="Root" version="1.0" xmlns="http://www.w3.org/2005/07/scxml">
+ <state id="Start">
+ <invoke id="ID_DATA_ISSUE">
+ <content>
+ <scxml datamodel="lua" initial="StateShape1" name="ScxmlShape1" version="1.0" xmlns="http://www.w3.org/2005/07/scxml">
+ <datamodel>
+ <data id="Timestamp">{
+ iSec = 1
+}
+ </data>
+ </datamodel>
+ <final id="pass"/>
+ <final id="fail">
+ <onentry>
+ <send event="error.execution" target="#_parent"/>
+ </onentry>
+ </final>
+ <state id="StateShape1">
+ <onentry>
+ <script>print(Timestamp)
+print(Timestamp.iSec)
+ </script>
+ <send delayexpr="tostring(Timestamp.iSec) .. 's'" event="step_1"/>
+ </onentry>
+ <transition event="step_1" target="pass"/>
+ <transition event="error.*" target="fail"/>
+ </state>
+ </scxml>
+ </content>
+ </invoke>
+ <transition event="done.invoke.ID_DATA_ISSUE" target="pass"/>
+ <transition event="error.*" target="fail"/>
+ </state>
+ <final id="pass"/>
+ <final id="fail"/>
+</scxml> \ No newline at end of file