summaryrefslogtreecommitdiffstats
path: root/test/w3c/c89/test242.scxml
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-07-11 12:55:48 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-07-11 12:55:48 (GMT)
commit1a362feda9d514ee30ad8815394ce11da2bdd29a (patch)
tree284d708961830b3a1863597e4330c695cc52993c /test/w3c/c89/test242.scxml
parentf06269c9ecfa94c966d0f453b2c8f03ccf8279cf (diff)
downloaduscxml-1a362feda9d514ee30ad8815394ce11da2bdd29a.zip
uscxml-1a362feda9d514ee30ad8815394ce11da2bdd29a.tar.gz
uscxml-1a362feda9d514ee30ad8815394ce11da2bdd29a.tar.bz2
More work on ANSI C datamodel
Diffstat (limited to 'test/w3c/c89/test242.scxml')
-rw-r--r--test/w3c/c89/test242.scxml56
1 files changed, 56 insertions, 0 deletions
diff --git a/test/w3c/c89/test242.scxml b/test/w3c/c89/test242.scxml
new file mode 100644
index 0000000..de2b871
--- /dev/null
+++ b/test/w3c/c89/test242.scxml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- test that markup specified by 'src' and by <content> is treated the same way. That means that
+either we get done.invoke in both cases or in neither case (in which case we timeout) -->
+<scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" version="1.0" datamodel="c89">
+ <state id="s0">
+ <onentry>
+ <send event="timeout1" delay="1s"/>
+ </onentry>
+ <transition event="timeout" target="fail"/>
+ <invoke type="http://www.w3.org/TR/scxml/" src="file:test242sub1.scxml"/>
+ <transition event="done.invoke" target="s02"/>
+ <transition event="timeout1" target="s03"/>
+ </state>
+ <state id="s02">
+ <onentry>
+ <send event="timeout2" delay="1s"/>
+ </onentry>
+ <invoke type="http://www.w3.org/TR/scxml/">
+ <!-- identical to test242sub1.scxml. -->
+ <content>
+ <scxml version="1.0" initial="subFinal1" datamodel="c89">
+ <final id="subFinal1"/>
+ </scxml>
+ </content>
+ </invoke>
+ <!-- we got done.invoke last time, so we need it this time too -->
+ <transition event="done.invoke" target="pass"/>
+ <transition event="timeout2" target="fail"/>
+ </state>
+ <state id="s03">
+ <onentry>
+ <send event="timeout3" delay="1s"/>
+ </onentry>
+ <invoke type="http://www.w3.org/TR/scxml/">
+ <!-- identical to test242sub1.scxml. -->
+ <content>
+ <scxml version="1.0" initial="subFinal2" datamodel="c89">
+ <final id="subFinal2"/>
+ </scxml>
+ </content>
+ </invoke>
+ <!-- we got timeout last time, so we need it this time too -->
+ <transition event="timeout3" target="pass"/>
+ <transition event="done.invoke" target="fail"/>
+ </state>
+ <final id="pass">
+ <onentry>
+ <log label="Outcome" expr="&amp;pass&amp;"/>
+ </onentry>
+ </final>
+ <final id="fail">
+ <onentry>
+ <log label="Outcome" expr="&amp;pass&amp;"/>
+ </onentry>
+ </final>
+</scxml>