summaryrefslogtreecommitdiffstats
path: root/test/uscxml
diff options
context:
space:
mode:
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