diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-08-25 10:41:58 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-08-25 10:41:58 (GMT) |
commit | 26183abd9acd44a0382e55cc985795ee7c526aed (patch) | |
tree | a9d9289397b65892dbad037d02460cf2d04597fb /test/samples/uscxml/test-markup-passing.scxml | |
parent | bd45c688b3d3aad5d62b85457ce943eaadf989ae (diff) | |
download | uscxml-26183abd9acd44a0382e55cc985795ee7c526aed.zip uscxml-26183abd9acd44a0382e55cc985795ee7c526aed.tar.gz uscxml-26183abd9acd44a0382e55cc985795ee7c526aed.tar.bz2 |
Updated W3C tests and bug-fixes
Diffstat (limited to 'test/samples/uscxml/test-markup-passing.scxml')
-rw-r--r-- | test/samples/uscxml/test-markup-passing.scxml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-markup-passing.scxml b/test/samples/uscxml/test-markup-passing.scxml new file mode 100644 index 0000000..32866b1 --- /dev/null +++ b/test/samples/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 |