summaryrefslogtreecommitdiffstats
path: root/test/samples/w3c/tests/test441a.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'test/samples/w3c/tests/test441a.scxml')
-rw-r--r--test/samples/w3c/tests/test441a.scxml44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/samples/w3c/tests/test441a.scxml b/test/samples/w3c/tests/test441a.scxml
new file mode 100644
index 0000000..31ed3b2
--- /dev/null
+++ b/test/samples/w3c/tests/test441a.scxml
@@ -0,0 +1,44 @@
+<?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" datamodel="null" version="1.0" exmode="lax" initial="s01">
+
+<!-- since exmode=lax, the processor should ignore all datamodel elements and complete without an error -->
+<datamodel>
+ <data id="Var1" expr="1"/>
+ </datamodel>
+
+<state id="s0">
+ <onentry>
+ <assign location="foo" expr="2"/>
+ <script>
+ x = y
+ </script>
+ <foreach array="baz" item="bat">
+ <log expr="this is a mistake"/>
+ </foreach>
+ </onentry>
+
+ <state id="s01" initial="s01final">
+ <final id="s01final">
+ <donedata>
+ <param name="result" expr="foo"/>
+ </donedata>
+ </final>
+ </state>
+
+ <transition cond="Var1==1" target="fail"/>
+ <transition event="error" target="fail"/>
+ <transition event="done" target="s1"/>
+ </state>
+
+<state id="s1">
+ <onentry>
+ <raise event="noerror"/>
+ </onentry>
+ <transition event="error" target="fail"/>
+ <transition event="noerror" target="pass"/>
+ </state>
+
+<final id="pass"><onentry><log label="Outcome" expr="'pass'"/></onentry></final>
+<final id="fail"><onentry><log label="Outcome" expr="'fail'"/></onentry></final>
+
+
+</scxml> \ No newline at end of file