summaryrefslogtreecommitdiffstats
path: root/test/uscxml/test-markup-passing.scxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-22 14:02:03 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-22 14:02:03 (GMT)
commit1fb6bcf30f954e426f2d3002d14887574fb941dd (patch)
tree08cff7f2b879c50efe79e3c04d255075522af862 /test/uscxml/test-markup-passing.scxml
parent71c334bf4e35559496feac3f3cf00b72ceb88812 (diff)
downloaduscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.zip
uscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.tar.gz
uscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.tar.bz2
Major refactoring
- Moved tests - Changes to promela datamodel - Implemented Trie
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