summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qscxmlc/data/misplacedinvoke.scxml18
-rw-r--r--tests/auto/qscxmlc/tst_qscxmlc.qrc1
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qscxmlc/data/misplacedinvoke.scxml b/tests/auto/qscxmlc/data/misplacedinvoke.scxml
new file mode 100644
index 0000000..fe5e5de
--- /dev/null
+++ b/tests/auto/qscxmlc/data/misplacedinvoke.scxml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<scxml
+ xmlns="http://www.w3.org/2005/07/scxml"
+ xmlns:conf="http://www.w3.org/2005/scxml-conformance"
+ initial="p01" version="1.0">
+ <state id="p01">
+ <invoke type="http://Www.w3.org/TR/scxml/">
+ <content>
+ <scxml version="1.0" initial="subFinal1" datamodel="ecmascript">
+ <final id="subFinal1"></final>
+ </scxml>
+ <finalize>
+ <assign location="Var1" expr="_event.data.aParam"/>
+ </finalize>
+ </content>
+ </invoke>
+ </state>
+</scxml>
diff --git a/tests/auto/qscxmlc/tst_qscxmlc.qrc b/tests/auto/qscxmlc/tst_qscxmlc.qrc
index 85911ca..24ee227 100644
--- a/tests/auto/qscxmlc/tst_qscxmlc.qrc
+++ b/tests/auto/qscxmlc/tst_qscxmlc.qrc
@@ -1,6 +1,7 @@
<RCC>
<qresource prefix="/tst_qscxmlc">
<file>data/empty.scxml</file>
+ <file>data/misplacedinvoke.scxml</file>
<file>data/id000000sig11src000000opflip1pos24.scxml</file>
<file>data/id000001sig11src000000opflip1pos7243.scxml</file>
<file>data/id000002sig11src000000opflip1pos7244.scxml</file>