summaryrefslogtreecommitdiffstats
path: root/test/uscxml/test-markup-passing.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'test/uscxml/test-markup-passing.scxml')
-rw-r--r--test/uscxml/test-markup-passing.scxml54
1 files changed, 54 insertions, 0 deletions
diff --git a/test/uscxml/test-markup-passing.scxml b/test/uscxml/test-markup-passing.scxml
new file mode 100644
index 0000000..32866b1
--- /dev/null
+++ b/test/uscxml/test-markup-passing.scxml
@@ -0,0 +1,54 @@
+<scxml binding="late" datamodel="ecmascript"
+ xmlns="http://www.w3.org/2005/07/scxml"
+ xmlns:foo="http://uscxml.tk.informatik.tu-darmstadt.de/foo.xsd">
+ <!--
+ embedded markup contains a single child
+ -->
+ <state id="markup-embedded-single">
+ <datamodel>
+ <data id="markup">
+ <root>
+ <child>1</child>
+ <foo:child>2</foo:child>
+ </root>
+ </data>
+ </datamodel>
+ <onentry>
+ <log label="markup-embedded-single" expr="markup.nodeName" />
+ </onentry>
+ <transition cond="markup.nodeName === 'root'" target="markup-embedded-many" />
+ </state>
+
+ <!--
+ embedded markup contains multiple childs
+ -->
+ <state id="markup-embedded-many">
+ <datamodel>
+ <data id="markup">
+ <root>
+ <child>1</child>
+ <foo:child>2</foo:child>
+ </root>
+ <root>
+ <child>1</child>
+ <foo:child>2</foo:child>
+ </root>
+ </data>
+ </datamodel>
+ <onentry>
+ <log label="markup-embedded-many" expr="markup.nodeName" />
+ </onentry>
+ <transition cond="markup.nodeName === 'data'" target="markup-file" />
+ </state>
+
+ <state id="markup-file">
+ <datamodel>
+ <data id="markup" src="test-markup.xml" />
+ </datamodel>
+ <onentry>
+ <log label="markup-file" expr="markup.nodeName" />
+ </onentry>
+ <transition cond="markup.nodeName === 'root'" target="exit" />
+ </state>
+ <final id="exit" />
+</scxml> \ No newline at end of file