summaryrefslogtreecommitdiffstats
path: root/test/uscxml
diff options
context:
space:
mode:
authorStefan Radomski <sradomski@mintwerk.de>2016-01-20 16:19:38 (GMT)
committerStefan Radomski <sradomski@mintwerk.de>2016-01-20 16:19:38 (GMT)
commit99457229adecc63246e900b01aee360039e7183d (patch)
tree5c103ab426fa3d27e983a54e481f2336295104ab /test/uscxml
parentb5abd34bfcc07588c7220d094a04dbc5708d344b (diff)
downloaduscxml-99457229adecc63246e900b01aee360039e7183d.zip
uscxml-99457229adecc63246e900b01aee360039e7183d.tar.gz
uscxml-99457229adecc63246e900b01aee360039e7183d.tar.bz2
Added transition-less histories as an issue and completed C transformation
Diffstat (limited to 'test/uscxml')
-rw-r--r--test/uscxml/automated/ecma/deep-histories2.scxml31
-rw-r--r--test/uscxml/automated/ecma/uncompleted-history.scxml11
2 files changed, 42 insertions, 0 deletions
diff --git a/test/uscxml/automated/ecma/deep-histories2.scxml b/test/uscxml/automated/ecma/deep-histories2.scxml
new file mode 100644
index 0000000..e19f029
--- /dev/null
+++ b/test/uscxml/automated/ecma/deep-histories2.scxml
@@ -0,0 +1,31 @@
+<scxml datamodel="ecmascript">
+ <datamodel>
+ <data id="Var1" expr="0" />
+ </datamodel>
+ <state id="s0">
+ <transition target="pass" cond="Var1 == 2" />
+ <transition target="fail" />
+
+ <history id="h0" type="deep" />
+ <state id="s0.0">
+ <history id="h1" type="deep" />
+ <state id="s0.0.0">
+ <onentry>
+ <assign location="Var1" expr="Var1 + 1" />
+ </onentry>
+ <transition target="s0.0.1" cond="Var1 == 1" />
+ </state>
+ <state id="s0.0.1">
+ <transition target="s1" cond="Var1 == 1" />
+ </state>
+ </state>
+ </state>
+ <state id="s1">
+ <onentry>
+ <assign location="Var1" expr="Var1 + 1" />
+ </onentry>
+ <transition target="h0" cond="Var1 == 2" />
+ </state>
+ <final id="pass" />
+ <final id="fail" />
+</scxml> \ No newline at end of file
diff --git a/test/uscxml/automated/ecma/uncompleted-history.scxml b/test/uscxml/automated/ecma/uncompleted-history.scxml
new file mode 100644
index 0000000..f6c3c04
--- /dev/null
+++ b/test/uscxml/automated/ecma/uncompleted-history.scxml
@@ -0,0 +1,11 @@
+<scxml datamodel="ecmascript" initial="s0.h0">
+ <state id="s0">
+ <transition target="fail" />
+ <history id="s0.h0" type="deep" />
+ <state id="s0.0">
+ <transition target="pass" />
+ </state>
+ </state>
+ <final id="pass" />
+ <final id="fail" />
+</scxml> \ No newline at end of file