summaryrefslogtreecommitdiffstats
path: root/tests/auto/statemachine/historystate.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/statemachine/historystate.scxml')
-rw-r--r--tests/auto/statemachine/historystate.scxml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/statemachine/historystate.scxml b/tests/auto/statemachine/historystate.scxml
new file mode 100644
index 0000000..4b3a5e4
--- /dev/null
+++ b/tests/auto/statemachine/historystate.scxml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" binding="early" name="HistoryState">
+ <state id="Working">
+ <state id="State1">
+ <onentry>
+ <send event="timeout" delay="1s"/>
+ </onentry>
+ </state>
+ <history type="shallow" id="HistoryState"/>
+ <transition type="external" event="timeout" target="State2"/>
+ </state>
+ <state id="State2"/>
+</scxml>