diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/compiled/compiled.pro | 3 | ||||
-rw-r--r-- | tests/auto/compiled/initialhistory.scxml | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/auto/compiled/compiled.pro b/tests/auto/compiled/compiled.pro index 53dcd8c..0fd3db9 100644 --- a/tests/auto/compiled/compiled.pro +++ b/tests/auto/compiled/compiled.pro @@ -17,6 +17,7 @@ STATECHARTS = \ statemachineunicodename.scxml \ anonymousstate.scxml \ submachineunicodename.scxml \ - datainnulldatamodel.scxml + datainnulldatamodel.scxml \ + initialhistory.scxml load(qscxmlc) diff --git a/tests/auto/compiled/initialhistory.scxml b/tests/auto/compiled/initialhistory.scxml new file mode 100644 index 0000000..9262e17 --- /dev/null +++ b/tests/auto/compiled/initialhistory.scxml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initial="h"> + <state id="b"> + <history id="h"> + <transition target="b2"/> + </history> + + <state id="b2"> + <onentry> + <assign location="x" expr="x * 5"/> + <log expr="'b2, x:' + x"/> + </onentry> + </state> + </state> +</scxml> |