summaryrefslogtreecommitdiffstats
path: root/test/uscxml/automated
diff options
context:
space:
mode:
Diffstat (limited to 'test/uscxml/automated')
-rw-r--r--test/uscxml/automated/ecma/deep-histories.scxml21
-rw-r--r--test/uscxml/automated/ecma/deep-initial.scxml18
2 files changed, 39 insertions, 0 deletions
diff --git a/test/uscxml/automated/ecma/deep-histories.scxml b/test/uscxml/automated/ecma/deep-histories.scxml
new file mode 100644
index 0000000..1d22131
--- /dev/null
+++ b/test/uscxml/automated/ecma/deep-histories.scxml
@@ -0,0 +1,21 @@
+<scxml datamodel="ecmascript">
+ <datamodel>
+ <data id="Var1" expr="0" />
+ </datamodel>
+ <state id="s0">
+ <history id="s0.h0" type="deep" />
+ <state id="s0.0">
+ <history id="s0.0.h0" type="shallow" />
+ <state id="s0.0.0">
+ </state>
+ <state id="s0.0.1">
+ </state>
+ </state>
+ <state id="s0.1">
+
+ </state>
+ </state>
+ <state id="s1">
+ </state>
+
+</scxml> \ No newline at end of file
diff --git a/test/uscxml/automated/ecma/deep-initial.scxml b/test/uscxml/automated/ecma/deep-initial.scxml
new file mode 100644
index 0000000..0315d15
--- /dev/null
+++ b/test/uscxml/automated/ecma/deep-initial.scxml
@@ -0,0 +1,18 @@
+<scxml datamodel="ecmascript" initial="start">
+ <datamodel>
+ <data id="Var1" expr="0" />
+ </datamodel>
+ <state id="start" initial="deep">
+ <transition cond="Var1 == 1" target="pass"/>
+ <transition target="fail"/>
+ <state id="inBetween">
+ <onentry>
+ <assign location="Var1" expr="Var1 + 1" />
+ <log label="Var1" expr="Var1" />
+ </onentry>
+ <state id="deep" />
+ </state>
+ </state>
+ <final id="pass" />
+ <final id="fail" />
+</scxml> \ No newline at end of file