diff options
Diffstat (limited to 'test/samples')
149 files changed, 0 insertions, 5500 deletions
diff --git a/test/samples/w3c/txml/test144.txml b/test/samples/w3c/txml/test144.txml deleted file mode 100644 index 73e50b0..0000000 --- a/test/samples/w3c/txml/test144.txml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that events are inserted into the queue in the order in which they are raised. If -foo occurs before bar, success, otherwise failure --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <raise event="foo"/> - <raise event="bar"/> - </onentry> - <transition event="foo" target="s1"/> - <transition event="*" conf:targetfail=""/> - - </state> - -<state id="s1"> - <transition event="bar" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test147.txml b/test/samples/w3c/txml/test147.txml deleted file mode 100644 index 20363a0..0000000 --- a/test/samples/w3c/txml/test147.txml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that the first clause that evaluates to true - and only that clause - is executed. -Only one event should be raised, and it should be bar --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - -<state id="s0"> - <onentry> - <if conf:false=""> - <raise event="foo"/> - <conf:incrementID id="1"/> - <elseif conf:true=""/> - <raise event="bar"/> - <conf:incrementID id="1"/> - <else/> - <raise event="baz"/> - <conf:incrementID id="1"/> - </if> - <raise event="bat"/> - </onentry> - <transition event="bar" conf:idVal="1=1" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test148.txml b/test/samples/w3c/txml/test148.txml deleted file mode 100644 index 8d19e56..0000000 --- a/test/samples/w3c/txml/test148.txml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that the else clause executes if <if> and <elseif> evaluate to false. -Baz should be the only event generated by the <if>. bat is raised to catch the case where the <else> clause -fails and baz is not generated, i.e. it makes sure that the test doesn't hang. --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - -<state id="s0"> - <onentry> - <if conf:false=""> - <raise event="foo"/> - <conf:incrementID id="1"/> - <elseif conf:false=""/> - <raise event="bar"/> - <conf:incrementID id="1"/> - <else/> - <raise event="baz"/> - <conf:incrementID id="1"/> - </if> - <raise event="bat"/> - </onentry> - <transition event="baz" conf:idVal="1=1" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test149.txml b/test/samples/w3c/txml/test149.txml deleted file mode 100644 index c971eea..0000000 --- a/test/samples/w3c/txml/test149.txml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<!-- test that neither if clause executes, so that bat is the only event raised. --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - -<state id="s0"> - <onentry> - <if conf:false=""> - <raise event="foo"/> - <conf:incrementID id="1"/> - <elseif conf:false=""/> - <raise event="bar"/> - <conf:incrementID id="1"/> - </if> - <raise event="bat"/> - </onentry> - <transition event="bat" conf:idVal="1=0" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test150.txml b/test/samples/w3c/txml/test150.txml deleted file mode 100644 index ff290dd..0000000 --- a/test/samples/w3c/txml/test150.txml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that foreach causes a new variable to be declared if 'item' doesn't already exist. Also -test that it will use an existing var if it does exist. --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1"/> - <data conf:id="2"/> - <data conf:id="3"> - <conf:array123/> - </data> - </datamodel> - - <state id="s0"> - <onentry> -<!-- first use declared variables --> - <foreach conf:item="1" conf:index="2" conf:arrayVar="3"/> - <raise event="foo"/> - </onentry> - <transition event="error" conf:targetfail=""/> - <transition event="*" target="s1"/> - </state> - -<state id="s1"> - <onentry> -<!-- now use undeclared variables --> - <foreach conf:item="4" conf:index="5" conf:arrayVar="3"/> - <raise event="bar"/> - </onentry> - <transition event="error" conf:targetfail=""/> - <transition event="*" target="s2"/> - </state> - -<state id="s2"> - <!-- check that var4 is bound --> - <transition conf:isBound="4" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - <conf:pass/> - <conf:fail/> - - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test151.txml b/test/samples/w3c/txml/test151.txml deleted file mode 100644 index 6f95692..0000000 --- a/test/samples/w3c/txml/test151.txml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that foreach causes a new variable to be declared if 'item' doesn't already exist. Also -test that it will use an existing var if it does exist. --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1"/> - <data conf:id="2"/> - <data conf:id="3"> - <conf:array123/> - </data> - </datamodel> - - <state id="s0"> - <onentry> -<!-- first use declared variables --> - <foreach conf:item="1" conf:index="2" conf:arrayVar="3"/> - <raise event="foo"/> - </onentry> - <transition event="error" conf:targetfail=""/> - <transition event="*" target="s1"/> - </state> - -<state id="s1"> - <onentry> -<!-- now use undeclared variables --> - <foreach conf:item="4" conf:index="5" conf:arrayVar="3"/> - <raise event="bar"/> - </onentry> - <transition event="error" conf:targetfail=""/> - <transition event="*" target="s2"/> - </state> - -<state id="s2"> - <!-- check that var5 is bound --> - <transition conf:isBound="5" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - <conf:pass/> - <conf:fail/> - - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test152.txml b/test/samples/w3c/txml/test152.txml deleted file mode 100644 index 86b50e9..0000000 --- a/test/samples/w3c/txml/test152.txml +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that an illegal array or item value causes error.execution and results in executable content -not being executed. --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> - <data conf:id="2"/> - <data conf:id="3"/> - <data conf:id="4" conf:illegalArray=""/> - <data conf:id="5"> - <conf:array123/> - </data> - </datamodel> - - <state id="s0"> - <onentry> -<!-- invalid array, legal item --> - <foreach conf:item="2" conf:index="3" conf:arrayTextVar="4"> - <conf:incrementID id="1"/> - </foreach> - <raise event="foo"/> - </onentry> - <transition event="error.execution" target="s1"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s1"> - <onentry> -<!-- illegal item, legal array --> - <foreach conf:illegalItem="" conf:index="3" conf:arrayVar="5"> - <conf:incrementID id="1"/> - </foreach> - <raise event="bar"/> - </onentry> - <transition event="error.execution" target="s2"/> - <transition event="bar" conf:targetfail=""/> - </state> - -<state id="s2"> - <!-- check that var1 has its original value (so executable content never got executed --> - <transition conf:idVal="1=0" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test153.txml b/test/samples/w3c/txml/test153.txml deleted file mode 100644 index e9f8038..0000000 --- a/test/samples/w3c/txml/test153.txml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that foreach goes over the array in the right order. since the array contains 1 2 3, we compare the current -value with the previous value, which is stored in var1. The current value should always be larger. If -it ever isn't, set Var4 to 0, indicating failure --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> <!-- contains the previous value --> - <data conf:id="2"/> <!-- the item which will contain the current value --> - <data conf:id="3"> - <conf:array123/> - </data> - <data conf:id="4" conf:expr="1"/> <!-- 1 if success, 0 if failure --> - </datamodel> - - <state id="s0"> - <onentry> - <foreach conf:item="2" conf:arrayVar="3"> - <if conf:compareIDVal="1<2"> - <assign conf:location="1" conf:varExpr="2"/> - <else/> - <!-- values are out of order, record failure --> - <assign conf:location="4" conf:expr="0"/> - </if> - </foreach> - </onentry> - - <!-- check that var1 has its original value --> - <transition conf:idVal="4=0" conf:targetfail=""/> - <transition conf:targetpass=""/> - </state> - - <conf:pass/> - <conf:fail/> - - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test155.txml b/test/samples/w3c/txml/test155.txml deleted file mode 100644 index 8444442..0000000 --- a/test/samples/w3c/txml/test155.txml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that foreach executes the executable content once for each item in the list '(1,2,3)'. The executable -content sums the items into var1 so it should be 6 at the end --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<datamodel> - <data conf:id="1" conf:expr="0"/> - <data conf:id="2"/> - <data conf:id="3"> - <conf:array123/> - </data> - </datamodel> - - <state id="s0"> - <onentry> - <foreach conf:item="2" conf:arrayVar="3"> - <conf:sumVars id1="1" id2="2"/> - </foreach> - </onentry> - - <transition conf:idVal="1=6" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test156.txml b/test/samples/w3c/txml/test156.txml deleted file mode 100644 index 316f879..0000000 --- a/test/samples/w3c/txml/test156.txml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that an error causes the foreach to stop execution. The second piece of executable content -should cause an error, so var1 should be incremented only once --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<datamodel> - <data conf:id="1" conf:expr="0"/> - <data conf:id="2"/> - <data conf:id="3"> - <conf:array123/> - </data> - </datamodel> - - <state id="s0"> - <onentry> - <foreach conf:item="2" conf:arrayVar="3"> - <conf:incrementID id="1"/> - <!-- assign an illegal value to a non-existent var --> - <assign conf:location="5" conf:illegalExpr=""/> - </foreach> - </onentry> - - <transition conf:idVal="1=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test158.txml b/test/samples/w3c/txml/test158.txml deleted file mode 100644 index cff220d..0000000 --- a/test/samples/w3c/txml/test158.txml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that executable content executes in document order. if event1 occurs then event2, succeed, otherwise fail --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - -<state id="s0"> - <onentry> - <raise event="event1"/> - <raise event="event2"/> - </onentry> - <transition event="event1" target="s1"/> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s1"> - <transition event="event2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test159.txml b/test/samples/w3c/txml/test159.txml deleted file mode 100644 index abf1925..0000000 --- a/test/samples/w3c/txml/test159.txml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that any error raised by an element of executable content causes all subsequent elements to be skipped. -The send tag will raise an error so var1 should not be incremented. If it is fail, otherwise succeed --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - -<state id="s0"> - <onentry> - <send event="thisWillFail" conf:illegaltarget=""/> - <conf:incrementId id="1"/> - </onentry> - <transition conf:idVal="1=1" conf:targetfail=""/> - <transition conf:targetpass=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test172.txml b/test/samples/w3c/txml/test172.txml deleted file mode 100644 index 45075a0..0000000 --- a/test/samples/w3c/txml/test172.txml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that eventexpr uses the current value of var1, not its initial value --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:quoteExpr="event1"/> - </datamodel> - -<state id="s0"> - <onentry> - <assign conf:location="1" conf:quoteExpr="event2"/> - <send conf:eventExpr="1"/> - </onentry> - - <transition event="event2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test173.txml b/test/samples/w3c/txml/test173.txml deleted file mode 100644 index c770856..0000000 --- a/test/samples/w3c/txml/test173.txml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that targetexpr uses the current value of var1, not its initial value -(If it uses the initial value, it will generate an error. If it uses the current value, event1 will be raised --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:invalidSessionID=""/> - </datamodel> - -<state id="s0"> - <onentry> - <assign conf:location="1" conf:quoteExpr="#_internal"/> - <send conf:targetExpr="1" event="event1"/> - </onentry> - - <transition event="event1" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test174.txml b/test/samples/w3c/txml/test174.txml deleted file mode 100644 index 3d33d5b..0000000 --- a/test/samples/w3c/txml/test174.txml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that typeexpr uses the current value of var1, not its initial value -(If it uses the initial value, it will generate an error. If it uses the current value, event1 will be raised --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:invalidSendTypeExpr=""/> - </datamodel> - -<state id="s0"> - <onentry> - <assign conf:location="1" conf:quoteExpr="http://www.w3.org/TR/scxml/#SCXMLEventProcessor"/> - <send conf:typeExpr="1" event="event1"/> - </onentry> - - <transition event="event1" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test175.txml b/test/samples/w3c/txml/test175.txml deleted file mode 100644 index aba7ac4..0000000 --- a/test/samples/w3c/txml/test175.txml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that delayexpr uses the current value of var1, not its initial value -(If it uses the initial value, event2 will be generated first, before event1. If it uses the current value, -event1 will be raised first. Succeed if event1 occurs before event2, otherwise fail --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:quoteExpr="0s"/> - </datamodel> - -<state id="s0"> - <onentry> - <assign conf:location="1" conf:quoteExpr="3s"/> - <send conf:delayExpr="1" event="event2"/> - <send delay="1s" event="event1"/> - </onentry> - - <transition event="event1" target="s1"/> - <transition event="event2" conf:targetfail=""/> - </state> - -<state id="s1"> - <transition event="event2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test176.txml b/test/samples/w3c/txml/test176.txml deleted file mode 100644 index 8d084d4..0000000 --- a/test/samples/w3c/txml/test176.txml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that <param> uses the current value of var1, not its initial value. If the value of -aParam in event1 is 2 so that var2 gets set to 2, success, otherwise failure --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - <data conf:id="2"/> - </datamodel> - -<state id="s0"> - <onentry> - <assign conf:location="1" conf:expr="2"/> - <send event="event1"> - <param name="aParam" conf:varExpr="1"/> - </send> - </onentry> - - <transition event="event1" target="s1"> - <assign conf:location="2" conf:eventDataFieldValue="aParam"/> - </transition> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s1"> - <transition conf:idVal="2=2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test178.txml b/test/samples/w3c/txml/test178.txml deleted file mode 100644 index de7a334..0000000 --- a/test/samples/w3c/txml/test178.txml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that multiple key/value pairs are included, even when the keys are the same. -This is a manual test. The tester must look at the log output and verify that both -keys are there. (This test uses the SCXML Event I/O processor, which is the only -one that all platforms must support. It does not specify the message format, so -we cannot test _event.raw directly. Therefore we print it out for visual -inspection.) --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s0"> - <onentry> - <send event="event1"> - <param conf:name="1" conf:expr="2"/> - <param conf:name="1" conf:expr="3"/> - </send> - </onentry> - - <transition event="event1" target="final"> - <log label="_event " conf:eventRaw=""/> - </transition> - <transition event="*" conf:targetfail=""/> - - </state> - - -<final id="final"/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test179.txml b/test/samples/w3c/txml/test179.txml deleted file mode 100644 index 02b74f6..0000000 --- a/test/samples/w3c/txml/test179.txml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that <content> can be used to populate body of a message --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="event1"> - <content>123</content> - </send> - </onentry> - - <transition event="event1" conf:eventdataVal="123" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test183.txml b/test/samples/w3c/txml/test183.txml deleted file mode 100644 index bb6e44a..0000000 --- a/test/samples/w3c/txml/test183.txml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that <send> stores the value of the sendid in idlocation. If it does, -var1 has a value and we pass. Otherwise we fail --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1"/> - - </datamodel> - -<state id="s0"> - <onentry> - <send event="event1" conf:idlocation="1"/> - </onentry> - - <transition conf:isBound="1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test185.txml b/test/samples/w3c/txml/test185.txml deleted file mode 100644 index c036cbf..0000000 --- a/test/samples/w3c/txml/test185.txml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that <send> respects the delay specification. If it does, event1 arrives before event2 - and we pass. Otherwise we fail --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="event2" delay="2s"/> - <send event="event1"/> - </onentry> - - <transition event="event1" target="s1"/> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s1"> - <transition event="event2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test186.txml b/test/samples/w3c/txml/test186.txml deleted file mode 100644 index e91c290..0000000 --- a/test/samples/w3c/txml/test186.txml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that <send> evals its args when it is evaluated, not when the delay interval expires and the -message is actually sent. If it does, aParam will have the value of 1 (even though var1 has been incremented -in the interval.) If var2 ends up == 1, we pass. Otherwise we fail --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - <data conf:id="2"/> - </datamodel> - -<state id="s0"> - <onentry> - <send event="event1" delay="2s"> - <param name="aParam" conf:varExpr="1"/> - </send> - <assign conf:location="1" conf:expr="2"/> - </onentry> - - <transition event="event1" target="s1"> - <assign conf:location="2" conf:eventDataFieldValue="aParam"/> - </transition> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s1"> - <transition conf:idVal="2=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test187.txml b/test/samples/w3c/txml/test187.txml deleted file mode 100644 index 994a489..0000000 --- a/test/samples/w3c/txml/test187.txml +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that delayed <send> is not sent if the sending session terminates. In this case, -a subscript is invoked which sends the event childToParent delayed by 1 second, and then terminates. The -parent session, should not receive childToParent. If it does, we fail. Otherwise the -10 sec timer expires and we pass --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" > - <onentry> - <send event="timeout" delay="10s"/> - </onentry> - <invoke type="scxml" > - <content> - <!-- exit before the delayed send can execute --> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0"> - <onentry> - <send event="childToParent" target="#_parent" delay="1s"/> - </onentry> - <transition target="subFinal"/> - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <transition event="childToParent" conf:targetfail=""/> - <transition event="timeout" conf:targetpass=""/> -</state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test194.txml b/test/samples/w3c/txml/test194.txml deleted file mode 100644 index 9e660a5..0000000 --- a/test/samples/w3c/txml/test194.txml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that specifying an illegal target for <send> causes the event error.execution to be raised. If it does, -we succeed. Otherwise we eventually timeout and fail. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <!-- should cause an error --> - <send conf:illegalTarget="" event="event2"/> - <!-- this will get added to the external event queue after the error has been raised --> - <send event="timeout"/> - </onentry> - - <!-- once we've entered the state, we should check for internal events first --> - <transition event="error.execution" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test198.txml b/test/samples/w3c/txml/test198.txml deleted file mode 100644 index 706ea93..0000000 --- a/test/samples/w3c/txml/test198.txml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that if type is not provided <send> uses the scxml event i/o processor. The only way to tell -what processor was used is to look at the origintype of the resulting event --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s0"> - <onentry> - <send event="event1"/> - <send event="timeout"/> - </onentry> - - - <transition event="event1" conf:originTypeEq="http://www.w3.org/TR/scxml/#SCXMLEventProcessor" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test199.txml b/test/samples/w3c/txml/test199.txml deleted file mode 100644 index dadd5b0..0000000 --- a/test/samples/w3c/txml/test199.txml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that using an invalid send type results in error.execution --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s0"> - <onentry> - <send conf:invalidSendType="" event="event1"/> - <send event="timeout"/> - </onentry> - - - <transition event="error.execution" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test200.txml b/test/samples/w3c/txml/test200.txml deleted file mode 100644 index 4aed203..0000000 --- a/test/samples/w3c/txml/test200.txml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that the processor supports the scxml event i/o processor --> - - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s0"> - <onentry> - <send type="http://www.w3.org/TR/scxml/#SCXMLEventProcessor" event="event1"/> - <send event="timeout"/> - </onentry> - - - <transition event="event1" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test201.txml b/test/samples/w3c/txml/test201.txml deleted file mode 100644 index c21eb7e..0000000 --- a/test/samples/w3c/txml/test201.txml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that the processor supports the basic http event i/o processor. This is an optional -test since platforms are not required to support basic http event i/o --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s0"> - <onentry> - <send type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor" event="event1"/> - <send event="timeout"/> - </onentry> - - - <transition event="event1" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test205.txml b/test/samples/w3c/txml/test205.txml deleted file mode 100644 index 6cc06f4..0000000 --- a/test/samples/w3c/txml/test205.txml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that the processor doesn't change the message. We can't test that it never does this, but -at least we can check that the event name and included data are the same as we sent. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1"/> - </datamodel> - -<state id="s0"> - <onentry> - <send event="event1"> - <param name="aParam" conf:expr="1"/> - </send> - <send event="timeout"/> - </onentry> - - - <transition event="event1" target="s1"> - <assign conf:location="1" conf:eventDataFieldValue="aParam"/> - </transition> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s1"> - <transition conf:idVal="1=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test207.txml b/test/samples/w3c/txml/test207.txml deleted file mode 100644 index 6893dcf..0000000 --- a/test/samples/w3c/txml/test207.txml +++ /dev/null @@ -1,60 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that that we can't cancel an event in another session. We invoke a child process. It notifies -us when it has generated a delayed event with sendid foo. We try to cancel foo. The child process sends us event - event success if the event is not cancelled, event fail otherwise. This doesn't test that there is absolutely no way to cancel an event -raised in another session, but the spec doesn't define any way to refer to an event in another process --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="10s"/> - </onentry> - <invoke type="scxml"> - <content> - <!-- when invoked, we raise a delayed event1 with sendid 'foo' and notify our parent. Then we wait. - If event1 occurs, the parent hasn't succeeded in canceling it and we return pass. If event2 occurs - it means event1 was canceled (because event2 is delayed longer than event1) and we return 'fail'. --> - - - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0"> - <onentry> - <send event="event1" id="foo" delay="3s"/> - <send event="event2" delay="5s"/> - <send target="#_parent" event="childToParent"/> - </onentry> - - <transition event="event1" target="subFinal"> - <send target="#_parent" event="pass"/> - </transition> - <transition event="*" target="subFinal"> - <send target="#_parent" event="fail"/> - </transition> - - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <state id="s01"> - <transition event="childToParent" target="s02"> - <cancel sendid="foo"/> - </transition> - </state> - - <state id="s02"> - <transition event="pass" conf:targetpass=""/> - <transition event="fail" conf:targetfail=""/> - <transition event="timeout" conf:targetfail=""/> - </state> - -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test208.txml b/test/samples/w3c/txml/test208.txml deleted file mode 100644 index 5a86e6d..0000000 --- a/test/samples/w3c/txml/test208.txml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that cancel works. We cancel delayed event1. If cancel works, we get event2 first and pass. If -we get event1 or an error first, cancel didn't work and we fail. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send id="foo" event="event1" delay="1s"/> - <send event="event2" delay="5s"/> - <cancel sendid="foo"/> - </onentry> - - <transition event="event2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test210.txml b/test/samples/w3c/txml/test210.txml deleted file mode 100644 index 402ed36..0000000 --- a/test/samples/w3c/txml/test210.txml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that sendidexpr works with cancel. If it takes the most recent value of var1, it should cancel -delayed event1. Thus we get event2 first and pass. If we get event1 or an error first, cancel didn't work and we fail. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:quoteExpr="bar"/> - </datamodel> - -<state id="s0"> - <onentry> - <send id="foo" event="event1" delay="1s"/> - <send event="event2" delay="5s"/> - <assign conf:location="1" conf:quoteExpr="foo"/> - <cancel conf:sendIDExpr="1"/> - </onentry> - - <transition event="event2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test215.txml b/test/samples/w3c/txml/test215.txml deleted file mode 100644 index afb8df5..0000000 --- a/test/samples/w3c/txml/test215.txml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that typexpr is evaluated at runtime. If the original value of var1 is used, the invocation -will fail (test215sub1.scxml is not of type 'foo', even if the platform supports foo as a type). If -the runtime value is used, the invocation will succeed --> - - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<datamodel> - <data conf:id="1" conf:quoteExpr="foo"/> - </datamodel> - -<state id="s0" > - <onentry> - <send event="timeout" delay="5s"/> - <assign conf:location="1" conf:quoteExpr="http://www.w3.org/TR/scxml/"/> - </onentry> - <invoke conf:typeExpr="1"> - <content> - <!-- when invoked, terminate returning done.invoke. This proves that the invocation succeeded. --> - <scxml initial="subFinal" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - <transition event="done.invoke" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test216.txml b/test/samples/w3c/txml/test216.txml deleted file mode 100644 index e65818e..0000000 --- a/test/samples/w3c/txml/test216.txml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that srcexpr is evaluated at runtime. If the original value of var1 is used, the invocation -will fail (assuming that there is no script named 'foo'). If -the runtime value is used, the invocation will succeed --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<datamodel> - <data conf:id="1" conf:quoteExpr="foo"/> - </datamodel> - -<state id="s0" > - <onentry> - <send event="timeout" delay="5s"/> - <assign conf:location="1" conf:quoteExpr="file:test216sub1.scxml"/> - </onentry> - <invoke conf:srcExpr="1" type="http://www.w3.org/TR/scxml"/> - <transition event="done.invoke" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test220.txml b/test/samples/w3c/txml/test220.txml deleted file mode 100644 index 4c79e4d..0000000 --- a/test/samples/w3c/txml/test220.txml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that the scxml type is supported. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s0" > - <onentry> - <send event="timeout" delay="5s"/> - </onentry> - <invoke type="http://www.w3.org/TR/scxml/"> - <content> - <!-- when invoked, terminate returning done.invoke. This proves that the invocation succeeded. --> - <scxml initial="subFinal" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"/> - </scxml></content> - </invoke> - <transition event="done.invoke" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test223.txml b/test/samples/w3c/txml/test223.txml deleted file mode 100644 index 9cdc499..0000000 --- a/test/samples/w3c/txml/test223.txml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that idlocation is supported. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1"/> - </datamodel> - -<state id="s0" > - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <invoke type="http://www.w3.org/TR/scxml/" conf:idlocation="1"> - <content> - <!-- when invoked, terminate returning done.invoke. This proves that the invocation succeeded. --> - <scxml initial="subFinal" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - <transition event="*" target="s1"/> -</state> - -<state id="s1"> - <transition conf:isBound="1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test224.txml b/test/samples/w3c/txml/test224.txml deleted file mode 100644 index 0ffe8eb..0000000 --- a/test/samples/w3c/txml/test224.txml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that the automatically generated id has the form stateid.platformid. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1"/> - <data conf:id="2" conf:quoteExpr="s0."/> - </datamodel> - -<state id="s0" > - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <invoke type="http://www.w3.org/TR/scxml/" conf:idlocation="1"> - <content> - <!-- when invoked, terminate returning done.invoke. This proves that the invocation succeeded. --> - <scxml version="1.0" initial="subFinal" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <transition event="*" target="s1"/> -</state> - -<state id="s1"> - <transition conf:varPrefix="2 1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test225.txml b/test/samples/w3c/txml/test225.txml deleted file mode 100644 index 548ff46..0000000 --- a/test/samples/w3c/txml/test225.txml +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that the automatically generated id is unique, we call invoke twice and compare the ids. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1"/> - <data conf:id="2"/> - </datamodel> - -<state id="s0" > - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/" conf:idlocation="1"> - <content> - <scxml initial="subFinal1" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal1"/> - </scxml> - </content> - </invoke> - <invoke type="http://www.w3.org/TR/scxml/" conf:idlocation="2" > - <content> - <scxml initial="subFinal2" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal2"/> - </scxml> - </content> - </invoke> - - <transition event="*" target="s1"/> -</state> - -<state id="s1"> - <transition conf:VarEqVar="1 2" conf:targetfail=""/> - <transition conf:targetpass=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test226.txml b/test/samples/w3c/txml/test226.txml deleted file mode 100644 index 843bfdc..0000000 --- a/test/samples/w3c/txml/test226.txml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0"?> -<!-- this is basically just a test that invoke works correctly and that you can pass data -to the invoked process. If the invoked session finds aParam==1, it exits, signalling -success. otherwise it will hang and the timeout in this doc signifies failure. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" > - <onentry> - <send event="timeout" delay="3s"/> - </onentry> - - - <invoke type="http://www.w3.org/TR/scxml/" src="file:test226sub1.txml"> - <param conf:name="1" conf:expr="1"/> - </invoke> - - <transition event="varBound" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test228.txml b/test/samples/w3c/txml/test228.txml deleted file mode 100644 index 40021bb..0000000 --- a/test/samples/w3c/txml/test228.txml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the invokeid is included in events returned from the invoked process. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1"/> - </datamodel> - -<state id="s0" > - <onentry> - <send event="timeout" delay="3s"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/" id="foo"> - <content> - <scxml initial="subFinal" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <transition event="done.invoke" target="s1"> - <assign conf:location="1" conf:eventField="invokeid"/> - </transition> - <transition event="*" conf:targetfail=""/> -</state> - -<state id="s1"> - <transition conf:idQuoteVal="1=foo" conf:targetpass=""/> - <transition conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test229.txml b/test/samples/w3c/txml/test229.txml deleted file mode 100644 index 3837b69..0000000 --- a/test/samples/w3c/txml/test229.txml +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0"?> -<!-- test that autofoward works. If the child process receives back a copy of the -childToParent event that it sends to this doc, it sends eventReceived, signalling success. (Note -that this doc is not required to process that event explicitly. It should be forwarded in any case.) Otherwise -it eventually times out and the done.invoke signals failure --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" > - <onentry> - <send event="timeout" delay="3s"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/" autoforward="true"> - <content> - <!-- when invoked, send childToParent to parent. - If it is forwarded back to us, send - eventReceived to signal success and terminate. - Otherwise wait for timer to expire and terminate. --> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0"> - <onentry> - <send target="#_parent" event="childToParent"/> - <send event="timeout" delay="3s"/> - </onentry> - <transition event="childToParent" target="subFinal"> - <send target="#_parent" event="eventReceived"/> - </transition> - <transition event="*" target="subFinal"/> - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <transition event="childToParent"/> - <transition event="eventReceived" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test230.txml b/test/samples/w3c/txml/test230.txml deleted file mode 100644 index fc27220..0000000 --- a/test/samples/w3c/txml/test230.txml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0"?> -<!-- a manual test that an autofowarded event has the same fields and values as the original event. -the child process sends the parent process an event which is forwarded back to it. -Both the parent and child process print out the contents of the event. The tester -must check if they are the same and report his result. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="3s"/> - </onentry> - <invoke type="http://www.w3.org/TR/scxml/" autoforward="true"> - <content> - <!-- when invoked, send childToParent to parent. If it is forwarded back to us, print out its - fields and terminate. --> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0"> - <onentry> - <send target="#_parent" event="childToParent"/> - <send event="timeout" delay="2s"/> - </onentry> - <transition event="childToParent" target="subFinal"> - <log label="name is " conf:eventField="name" /> - <log label="type is " conf:eventField="type" /> - <log label="sendid is " conf:eventField="sendid"/> - <log label="origin is " conf:eventField="origin" /> - <log label="origintype is " conf:eventField="origintype" /> - <log label="invokeid is " conf:eventField="invokeid" /> - <log label="data is " conf:eventField="data"/> - </transition> - <transition event="*" target="subFinal"/> - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - <transition event="timeout" target="final"/> - - - <state id="s01"> - <transition event="childToParent" target="s02"> - <log label="name is " conf:eventField="name" /> - <log label="type is " conf:eventField="type" /> - <log label="sendid is " conf:eventField="sendid"/> - <log label="origin is " conf:eventField="origin" /> - <log label="origintype is " conf:eventField="origintype" /> - <log label="invokeid is " conf:eventField="invokeid" /> - <log label="data is " conf:eventField="data"/> - </transition> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s02"> - <!-- wait till we get the done event to ensure that the child process has time to print out its results --> - <transition event="done.invoke" target="final"/> - </state> - -</state> - -<final id="final"/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test232.txml b/test/samples/w3c/txml/test232.txml deleted file mode 100644 index 1cbc14f..0000000 --- a/test/samples/w3c/txml/test232.txml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0"?> -<!-- test that a parent process can receive multiple events from a child process --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="3s"/> - </onentry> - <invoke type="http://www.w3.org/TR/scxml/"> - <content> - <scxml initial="subFinal" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"> - <onentry> - <send target="#_parent" event="childToParent1"/> - <send target="#_parent" event="childToParent2"/> - </onentry> - </final> - </scxml> - </content> - </invoke> - <transition event="timeout" conf:targetfail=""/> - - - <state id="s01"> - <transition event="childToParent1" target="s02"/> - </state> - - <state id="s02"> - <transition event="childToParent2" target="s03"/> - </state> - -<state id="s03"> - <transition event="done.invoke" conf:targetpass=""/> - </state> - -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test233.txml b/test/samples/w3c/txml/test233.txml deleted file mode 100644 index 94b219b..0000000 --- a/test/samples/w3c/txml/test233.txml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0"?> -<!-- test that finalize markup runs before the event is processed. The invoked process will -return 2 in _event.data.aParam, so that new value should be in force when we select -the transtitions. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - -<state id="s0"> - <onentry> - <send event="timeout" delay="3s"/> - </onentry> - <invoke type="http://www.w3.org/TR/scxml/"> - <content> - <scxml initial="subFinal" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"> - <onentry> - <send target="#_parent" event="childToParent"> - <param name="aParam" conf:expr="2"/> - </send> - </onentry> - </final> - </scxml> - </content> - <finalize> - <assign conf:location="1" conf:eventDataFieldValue="aParam"/> - </finalize> - </invoke> - - <transition event="childToParent" conf:idVal="1 2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test234.txml b/test/samples/w3c/txml/test234.txml deleted file mode 100644 index 27d4626..0000000 --- a/test/samples/w3c/txml/test234.txml +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0"?> -<!-- test that only finalize markup in the invoking state runs. the first invoked process will -return 2 in _event.data.aParam, while second invoked process sleeps without returning any events. -Only the first finalize should execute. So when we get to s1 var1 should have value 2 but -var2 should still be set to 1 --> - - -<scxml initial="p0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - <data conf:id="2" conf:expr="1"/> - </datamodel> -<parallel id="p0"> - <onentry> - <send event="timeout" delay="3s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - - <state id="p01"> - <invoke type="http://www.w3.org/TR/scxml/"> - <content> - <scxml version="1.0" initial="subFinal1" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal1"> - <onentry> - <send target="#_parent" event="childToParent"> - <param name="aParam" conf:expr="2"/> - </send> - </onentry> - </final> - </scxml> - </content> - <finalize> - <assign conf:location="1" conf:eventDataFieldValue="aParam"/> - </finalize> - </invoke> - - <transition event="childToParent" conf:idVal="1=2" target="s1"/> - <transition event="childToParent" conf:targetfail=""/> - </state> - - <state id="p02"> - <invoke type="http://www.w3.org/TR/scxml/"> - <content> - <scxml version="1.0" initial="sub0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <transition event="timeout" target="subFinal2"/> - </state> - <final id="subFinal2"/> - </scxml> - </content> - <finalize> - <assign conf:location="2" conf:eventDataFieldValue="aParam"/> - </finalize> - </invoke> - </state> - -</parallel> - - -<state id="s1"> - <transition conf:idVal="2=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test235.txml b/test/samples/w3c/txml/test235.txml deleted file mode 100644 index 84b8680..0000000 --- a/test/samples/w3c/txml/test235.txml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0"?> -<!-- test that done.invoke.id event has the right id. the invoked child terminates immediately -and should generate done.invoke.foo --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <invoke type="http://www.w3.org/TR/scxml/" id="foo"> - <content> - <scxml initial="subFinal" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <transition event="done.invoke.foo" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test236.txml b/test/samples/w3c/txml/test236.txml deleted file mode 100644 index 5d18c2f..0000000 --- a/test/samples/w3c/txml/test236.txml +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0"?> -<!-- test that done.invoke.id event is the last event we receive. the invoked process sends childToParent -in the exit handler of its final state. We should get it before the done.invoke, and we should get no -events after the done.invoke. Hence timeout indicates success --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <invoke type="http://www.w3.org/TR/scxml/"> - <content> - <scxml initial="subFinal" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"> - <onexit> - <send target="#_parent" event="childToParent"/> - </onexit> - </final> - </scxml> - </content> - </invoke> - - <transition event="childToParent" target="s1"/> - <transition event="done.invoke" conf:targetfail=""/> -</state> - -<state id="s1"> - <!-- here we should get done.invoke --> - <transition event="done.invoke" target="s2"/> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s2"> - <transition event="timeout" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test237.txml b/test/samples/w3c/txml/test237.txml deleted file mode 100644 index c6097bc..0000000 --- a/test/samples/w3c/txml/test237.txml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0"?> -<!-- test that cancelling works. invoked child sleeps for two seconds, then terminates. We -sleep for 1 sec in s0, then move to s1. This should cause the invocation to get cancelled. -If we receive done.invoke, the invocation wasn't cancelled, and we fail. If we receive no events by -the time timeout2 fires, success --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="timeout1" delay="1s"/> - </onentry> - <invoke type="http://www.w3.org/TR/scxml/"> - <content> - <!-- when invoked, sleep for 2 secs then terminate. Parent will try to cancel this session --> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <transition event="timeout" target="subFinal"/> - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <transition event="timeout1" target="s1"/> - -</state> - -<state id="s1"> - <onentry> - <send event="timeout2" delay="2s"/> - </onentry> - <!-- here we should NOT get done.invoke --> - <transition event="done.invoke" conf:targetfail=""/> - <transition event="*" conf:targetpass=""/> - </state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test239.txml b/test/samples/w3c/txml/test239.txml deleted file mode 100644 index 8fa1837..0000000 --- a/test/samples/w3c/txml/test239.txml +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0"?> -<!-- test that markup can be specified both by 'src' and by <content> --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - - <state id="s01"> - <invoke type="http://www.w3.org/TR/scxml/" src="file:test239sub1.scxml"/> - <transition event="done.invoke" target="s02"/> - </state> - -<state id="s02"> - <invoke type="http://www.w3.org/TR/scxml/"> - <!-- identical to test239sub1.scxml. --> - <content> - <scxml version="1.0" initial="final" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="final"/> - </scxml> - </content> - </invoke> - - <transition event="done.invoke" conf:targetpass=""/> - </state> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test240.txml b/test/samples/w3c/txml/test240.txml deleted file mode 100644 index bf669d4..0000000 --- a/test/samples/w3c/txml/test240.txml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0"?> -<!-- test that datamodel values can be specified both by 'namelist' and by <param>. -invoked child will return success if its Var1 is set to 1, failure otherwise. This -test will fail schema validation because of the multiple occurences of Var1, but -should run correctly. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - - <state id="s01"> - <invoke type="http://www.w3.org/TR/scxml/" conf:namelist="1"> - <content> - <scxml initial="sub01" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - <state id="sub01"> - <transition conf:namelistIdVal="1=1" target="subFinal1"> - <send target="#_parent" event="success"/> - </transition> - <transition target="subFinal1"> - <send target="#_parent" event="failure"/> - </transition> - </state> - <final id="subFinal1"/> - </scxml> - </content> - </invoke> - <transition event="success" target="s02"/> - <transition event="failure" conf:targetfail=""/> - </state> - -<state id="s02"> - <invoke type="http://www.w3.org/TR/scxml/"> - <param conf:name="1" conf:expr="1"/> - <content> - <scxml initial="sub02" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - - <state id="sub02"> - <transition conf:idVal="1=1" target="subFinal2"> - <send target="#_parent" event="success"/> - </transition> - <transition target="subFinal1"> - <send target="#_parent" event="failure"/> - </transition> - </state> - <final id="subFinal2"/> - </scxml> - </content> - </invoke> - <transition event="success" conf:targetpass=""/> - <transition event="failure" conf:targetfail=""/> - </state> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test241.txml b/test/samples/w3c/txml/test241.txml deleted file mode 100644 index 9587697..0000000 --- a/test/samples/w3c/txml/test241.txml +++ /dev/null @@ -1,102 +0,0 @@ -<?xml version="1.0"?> -<!-- The child process will return success ifits Var1 is set to 1, failure otherwise. For this test -we try passing in Var1 by param and by namelist and check that we either get two successes -or two failures. This test will fail schema validation due to multiple declarations of -Var1, but should run correctly. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - - <state id="s01"> - <invoke type="http://www.w3.org/TR/scxml/" conf:namelist="1"> - <content> - <scxml initial="sub01" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - - <state id="sub01"> - <transition conf:idVal="1=1" target="subFinal1"> - <send target="#_parent" event="success"/> - </transition> - <transition target="subFinal1"> - <send target="#_parent" event="failure"/> - </transition> - </state> - - <final id="subFinal1"/> - </scxml> - </content> - </invoke> - <transition event="success" target="s02"/> - <transition event="failure" target="s03"/> - </state> - -<state id="s02"> - <invoke type="http://www.w3.org/TR/scxml/"> - <param conf:name="1" conf:expr="1"/> - <content> - <scxml initial="sub02" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - - <state id="sub02"> - <transition conf:idVal="1=1" target="subFinal2"> - <send target="#_parent" event="success"/> - </transition> - <transition target="subFinal2"> - <send target="#_parent" event="failure"/> - </transition> - </state> - - <final id="subFinal2"/> - </scxml> - </content> - </invoke> - <!-- we got success in s01, so we need to do so here --> - <transition event="success" conf:targetpass=""/> - <transition event="failure" conf:targetfail=""/> - </state> - -<state id="s03"> - <invoke type="http://www.w3.org/TR/scxml/" > - <param conf:name="1" conf:expr="1"/> - <content> - <scxml initial="sub03" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - - <state id="sub03"> - <transition conf:idVal="1=1" target="subFinal3"> - <send target="#_parent" event="success"/> - </transition> - <transition target="subFinal3"> - <send target="#_parent" event="failure"/> - </transition> - </state> - - <final id="subFinal3"/> - </scxml> - </content> - </invoke> - <!-- we got failure in s01, so we need to do so here --> - <transition event="failure" conf:targetpass=""/> - <transition event="success" conf:targetfail=""/> - </state> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test242.txml b/test/samples/w3c/txml/test242.txml deleted file mode 100644 index 35fa154..0000000 --- a/test/samples/w3c/txml/test242.txml +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0"?> -<!-- 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 initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" > - <onentry> - <send event="timeout1" delay="1s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - - <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" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal1"/> - </scxml> - </content> - </invoke> - <!-- we got done.invoke last time, so we need it this time too --> - <transition event="done.invoke" conf:targetpass=""/> - <transition event="timeout2" conf:targetfail=""/> - </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" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal2"/> - </scxml> - </content> - </invoke> - <!-- we got timeout last time, so we need it this time too --> - <transition event="timeout3" conf:targetpass=""/> - <transition event="done.invoke" conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test243.txml b/test/samples/w3c/txml/test243.txml deleted file mode 100644 index a01345c..0000000 --- a/test/samples/w3c/txml/test243.txml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0"?> -<!-- test that datamodel values can be specified by param. -test240sub1 will return success ifits Var1 is set to 1, failure otherwise. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/"> - <param conf:name="1" conf:expr="1"/> - <content> - <scxml version="1.0" initial="sub0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - - <state id="sub0"> - <transition conf:idVal="1=1" target="subFinal"> - <send target="#_parent" event="success"/> - </transition> - <transition target="subFinal"> - <send target="#_parent" event="failure"/> - </transition> - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - <transition event="success" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test244.txml b/test/samples/w3c/txml/test244.txml deleted file mode 100644 index c0f1a23..0000000 --- a/test/samples/w3c/txml/test244.txml +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0"?> -<!-- test that datamodel values can be specified by namelist. -invoked child will return success ifits Var1 is set to 1, failure otherwise. -This test will fail schema validation due to multiple occurrences of Var1, -but should run correctly. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - -<state id="s0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/" conf:namelist="1"> - <content> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - - <state id="sub0"> - <transition conf:idVal="1=1" target="subFinal"> - <send target="#_parent" event="success"/> - </transition> - <transition target="subFinal"> - <send target="#_parent" event="failure"/> - </transition> - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - <transition event="success" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test245.txml b/test/samples/w3c/txml/test245.txml deleted file mode 100644 index 459bec6..0000000 --- a/test/samples/w3c/txml/test245.txml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0"?> -<!-- test that non-existent datamodel values are not set. Var2 is not defined in -invoked child's datamodel. It will will return success if its Var2 remains unbound, failure otherwise. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="2" conf:expr="3"/> - </datamodel> - -<state id="s0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/" conf:namelist="2"> - <content> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0"> - <transition conf:isBound="2" target="subFinal"> - <send target="#_parent" event="failure"/> - </transition> - <transition target="subFinal"> - <send target="#_parent" event="success"/> - </transition> - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <transition event="success" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test247.txml b/test/samples/w3c/txml/test247.txml deleted file mode 100644 index 7c528a3..0000000 --- a/test/samples/w3c/txml/test247.txml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<!-- test that we get done.invoke. timeout indicates failure --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/"> - <content> - <scxml version="1.0" initial="subFinal" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - <transition event="done.invoke" conf:targetpass=""/> - <transition event="timeout" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test250.txml b/test/samples/w3c/txml/test250.txml deleted file mode 100644 index 3455062..0000000 --- a/test/samples/w3c/txml/test250.txml +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the onexit handlers run in the invoked process if it is cancelled. This has to be a -manual test, since this process won't accept any events from the child process once it has been cancelled. -Tester must examine log output from child process to determine success --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="foo"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/" > - <content> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0" initial="sub01"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <transition event="timeout" target="subFinal"/> - <onexit> - <log conf:quoteExpr="Exiting sub0"/> - </onexit> - <state id="sub01"> - <onexit> - <log conf:quoteExpr="Exiting sub01"/> - </onexit> - </state> - </state> - <final id="subFinal"> - <onentry> - <log conf:quoteExpr="entering final state, invocation was not cancelled"/> - </onentry> - </final> - </scxml> - </content> - </invoke> - - <!-- this transition will cause the invocation to be cancelled --> - <transition event="foo" target="final"/> - </state> - -<final id="final"/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test252.txml b/test/samples/w3c/txml/test252.txml deleted file mode 100644 index 40c36cb..0000000 --- a/test/samples/w3c/txml/test252.txml +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0"?> -<!-- test that we don't process any events received from the invoked process once it is cancelled. child -process tries to send us childToParent in an onexit handler. If we get it, we fail. -timeout indicates success. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - - <transition event="timeout" conf:targetpass=""/> - <transition event="childToParent" conf:targetfail=""/> - <transition event="done.invoke" conf:targetfail=""/> - - <state id="s01"> - <onentry> - <send event="foo"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/"> - <content> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <transition event="timeout" target="subFinal"/> - <onexit> - <send target="#_parent" event="childToParent"/> - </onexit> - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <!-- this transition will cause the invocation to be cancelled --> - <transition event="foo" target="s02"/> - </state> - - <state id="s02"/> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test253.txml b/test/samples/w3c/txml/test253.txml deleted file mode 100644 index 041797a..0000000 --- a/test/samples/w3c/txml/test253.txml +++ /dev/null @@ -1,83 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the scxml event processor is used in both directions. If child process uses the -scxml event i/o processor to communicate with us, send it an event. It will send back success if -this process uses the scxml processor to send the message to it, otherwise failure. For this test we allow -'scxml' as an alternative to the full url. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1"/> - </datamodel> - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - - <transition event="timeout" conf:targetfail=""/> - - <invoke type="scxml" id="foo"> - <content> - <!-- inform parent we're running then wait for it to send us an event. If it uses the scxml event i/o - processor to do so, return success, otherwise return failure. --> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="2"/> - </datamodel> - <state id="sub0"> - <onentry> - <send target="#_parent" event="childRunning"/> - </onentry> - - <transition event="parentToChild" target="sub1"> - <assign conf:location="2" conf:eventField="origintype"/> - </transition> - </state> - <state id="sub1"> - <transition conf:idQuoteVal="2=http://www.w3.org/TR/scxml/#SCXMLEventProcessor" target="subFinal"> - <send target="#_parent" event="success"/> - </transition> - <transition conf:idQuoteVal="2=scxml" target="subFinal"> - <send target="#_parent" event="success"/> - </transition> - <transition target="subFinal"> - <send target="#_parent" event="failure"/> - </transition> - </state> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - - <state id="s01"> - <transition event="childRunning" target="s02"> - <assign conf:location="1" conf:eventField="origintype"/> - </transition> - </state> - - <state id="s02"> - - <transition conf:idQuoteVal="1=http://www.w3.org/TR/scxml/#SCXMLEventProcessor" target="s03"> - <send target="#_foo" event="parentToChild"/> - </transition> - <transition conf:idQuoteVal="1=scxml" target="s03"> - <send target="#_foo" event="parentToChild"/> - </transition> - - <transition conf:targetfail=""/> - - </state> - - - <state id="s03"> - <transition event="success" conf:targetpass=""/> - <transition event="fail" conf:targetfail=""/> - - </state> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test276.txml b/test/samples/w3c/txml/test276.txml deleted file mode 100644 index e4a9d9f..0000000 --- a/test/samples/w3c/txml/test276.txml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that values passed in from parent process override default values specified in the child, test276sub1.scxml. -The child returns event1 if var1 has value 1, event0 if it has default value 0. --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s0"> - <invoke type="scxml" src="file:test276sub1.scxml" > - <param conf:name="1" conf:expr="1"/> - </invoke> - <transition event="event1" conf:targetpass=""/> - <transition event="event0" conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test279.txml b/test/samples/w3c/txml/test279.txml deleted file mode 100644 index b3b1adc..0000000 --- a/test/samples/w3c/txml/test279.txml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0"?> - -<!-- testing that in case of early binding variables are assigned values at init time, before - the state containing them is visited --> -<scxml initial="s0" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" conf:datamodel="" - xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - - <state id="s0"> - <transition conf:idVal="1=1" conf:targetpass=""/> - - <transition conf:targetfail=""/> - - </state> - -<state id="s1"> - <datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test280.txml b/test/samples/w3c/txml/test280.txml deleted file mode 100644 index 723eaa5..0000000 --- a/test/samples/w3c/txml/test280.txml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0"?> - - -<!-- test late binding. var2 won't get bound until s1 is entered, so it shouldn't have a value in s0 and -accessing it should cause an error. It should get bound before the onentry code in s1 so it should be -possible access it there and assign its value to var1 --> - -<scxml initial="s0" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" conf:datamodel="" - binding="late" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <datamodel> - <data conf:id="1"/> - </datamodel> - - <state id="s0"> - <transition conf:unboundVar="2" target="s1"/> - <transition conf:targetfail=""/> - </state> - -<state id="s1"> - <datamodel> - <data conf:id="2" conf:expr="1"/> - </datamodel> - <onentry> - <assign conf:location="1" conf:varExpr="2"/> - </onentry> - <transition conf:VarEqVar="1 2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test286.txml b/test/samples/w3c/txml/test286.txml deleted file mode 100644 index 89b77a9..0000000 --- a/test/samples/w3c/txml/test286.txml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that assigment to a non-declared var causes an error. the transition on foo catches the case -where no error is raised --> - -<scxml xmlns="http://www.w3.org/2005/07/scxml" - xmlns:conf="http://www.w3.org/2005/scxml-conformance" version="1.0" conf:datamodel="" initial="s0"> - - - <state id="s0"> - <onentry> - <assign conf:location="1" conf:expr="1"/> - <raise event="foo"/> - </onentry> - - <transition event="error.execution" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml> diff --git a/test/samples/w3c/txml/test287.txml b/test/samples/w3c/txml/test287.txml deleted file mode 100644 index 8f25165..0000000 --- a/test/samples/w3c/txml/test287.txml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0"?> -<!-- a simple test that a legal value may be assigned to a valid data model location --> - -<scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" - conf:datamodel="" version="1.0" initial="s0"> - -<datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - - <state id="s0"> - <onentry> - <assign conf:location="1" conf:expr="1"/> - </onentry> - - <transition conf:idVal="1=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test294.txml b/test/samples/w3c/txml/test294.txml deleted file mode 100644 index 507ff3b..0000000 --- a/test/samples/w3c/txml/test294.txml +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0"?> -<!-- test that a param inside donedata ends up in the data field of the done event and -that content inside donedata sets the full value of the event.data field --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" conf:datamodel="" initial="s0"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - - <state id="s0" initial="s01"> - - <transition event="done.state.s0" conf:eventvarVal="1=1" target="s1"> - </transition> - - <transition event="done.state.s0" conf:targetfail=""> - </transition> - - <state id="s01"> - <transition target="s02"/> - </state> - <final id="s02"> - <donedata> - <param conf:name="1" conf:expr="1"/> - </donedata> - </final> - </state> - - <state id="s1" initial="s11"> - - <transition event="done.state.s1" conf:eventdataVal="foo" conf:targetpass=""> - </transition> - - <transition event="done.state.s1" conf:targetfail=""> - </transition> - - <state id="s11"> - <transition target="s12"/> - </state> - <final id="s12"> - <donedata> - <conf:contentFoo/> - </donedata> - </final> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test298.txml b/test/samples/w3c/txml/test298.txml deleted file mode 100644 index e1af350..0000000 --- a/test/samples/w3c/txml/test298.txml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<!-- refence a non-existent data model location in param in donedata and see that the right error is raised --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" conf:datamodel="" initial="s0"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - - <state id="s0" initial="s01"> - <transition event="error.execution" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - - <state id="s01"> - <transition target="s02"/> - </state> - <final id="s02"> - <donedata> - <param conf:name="3" conf:location="2"/> - </donedata> - </final> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml> - - diff --git a/test/samples/w3c/txml/test301.txml b/test/samples/w3c/txml/test301.txml deleted file mode 100644 index d3245f3..0000000 --- a/test/samples/w3c/txml/test301.txml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- the processor should reject this document because it can't download the script. -Therefore we fail if it runs at all. This test is valid only for datamodels that support scripting --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> - <script conf:scriptBadSrc=""/> - - <state id="s0"> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test302.txml b/test/samples/w3c/txml/test302.txml deleted file mode 100644 index f1b99c0..0000000 --- a/test/samples/w3c/txml/test302.txml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- test that a script is evaluated at load time. <conf:script> shoudl assign the value 1 to -Var1. Hence, if script is evaluated at download time, Var1 has a value in the initial state s0. -This test is valid only for datamodels that support scripting --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" - xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> - <conf:script/> - - <state id="s0"> - <transition conf:idVal="1=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test303.txml b/test/samples/w3c/txml/test303.txml deleted file mode 100644 index 6fd1e9c..0000000 --- a/test/samples/w3c/txml/test303.txml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- to test that scripts are run as part of executable content, we check that it changes the value of a var at the -right point. This test is valid only for datamodels that support scripting --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> -<datamodel> -<data conf:id="1" conf:expr="0"/> -</datamodel> - - <state id="s0"> - <onentry> - <assign conf:location="1" conf:expr="2"/> - <conf:script/> - </onentry> - <transition conf:idVal="1=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test304.txml b/test/samples/w3c/txml/test304.txml deleted file mode 100644 index 9ed6cbb..0000000 --- a/test/samples/w3c/txml/test304.txml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- test that a variable declared by a script can be accessed like any other part of the data model --> - -<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> - <conf:script/> - - <state id="s0"> - <transition conf:idVal="1=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test307.txml b/test/samples/w3c/txml/test307.txml deleted file mode 100644 index 4065f5f..0000000 --- a/test/samples/w3c/txml/test307.txml +++ /dev/null @@ -1,43 +0,0 @@ -<?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" version="1.0" initial="s0" binding="late"> - -<!-- with binding=late, in s0 we access a variable that isn't created until we get to s1. Then in s1 -we access a non-existent substructure of a variable. We use log tags to report the values that both operations -yield, and whether there are errors. This is a manual test, since the tester must report whether the output -is the same in the two cases --> - -<state id="s0"> - <onentry> - <log label="entering s0 value of Var 1 is: " conf:varExpr="1"/> - <raise event="foo"/> - </onentry> - <transition event="error" target="s1"> - <log label="error in state s0" conf:expr="_event"/> - </transition> - <transition event="foo" target="s1"> - <log label="no error in s0" conf:expr=""/> - </transition> - </state> - -<state id="s1"> - <datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - - <onentry> - <log label="entering s1, value of non-existent substructure of Var 1 is: " conf:varNonexistentStruct="1"/> - <raise event="bar"/> - </onentry> - - <transition event="error" target="final"> - <log label="error in state s1" conf:expr="_event"/> - </transition> - <transition event="bar" target="final"> - <log label="No error in s1" conf:expr=""/> - </transition> - -</state> - -<final id="final"/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test309.txml b/test/samples/w3c/txml/test309.txml deleted file mode 100644 index c781100..0000000 --- a/test/samples/w3c/txml/test309.txml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- test that an expression that cannot be interpreted as a boolean is treated as false --> - -<scxml version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> - -<state id="s0"> - <transition conf:nonBoolean="" conf:targetfail=""/> - <transition conf:targetpass=""/> - </state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test310.txml b/test/samples/w3c/txml/test310.txml deleted file mode 100644 index f88a87a..0000000 --- a/test/samples/w3c/txml/test310.txml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- simple test of the in() predicate --> - -<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" conf:datamodel="" -xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="p"> - - - <parallel id="p"> - - <state id="s0"> - <transition conf:inState="s1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <state id="s1"/> - </parallel> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test311.txml b/test/samples/w3c/txml/test311.txml deleted file mode 100644 index f6485be..0000000 --- a/test/samples/w3c/txml/test311.txml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- test that assignment to a non-existent location yields an error --> - -<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" conf:datamodel="" -xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> - - -<state id="s0"> - <onentry> - <assign conf:location="1" conf:expr="1"/> - </onentry> - <transition event="error.execution" conf:targetpass=""/> - <transition event=".*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test312.txml b/test/samples/w3c/txml/test312.txml deleted file mode 100644 index 597200b..0000000 --- a/test/samples/w3c/txml/test312.txml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- test that assignment with an illegal expr raises an error --> - -<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" conf:datamodel="" -xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> - -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - -<state id="s0"> - <onentry> - <assign conf:location="1" conf:illegalExpr=""/> - <raise event="foo"/> - </onentry> - <transition event="error.execution" conf:targetpass=""/> - <transition event=".*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test313.txml b/test/samples/w3c/txml/test313.txml deleted file mode 100644 index ee11064..0000000 --- a/test/samples/w3c/txml/test313.txml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- this is a manual test. The processor is allowed to reject this doc, but if it executes it with its illegal -expression, it must raise an error --> - -<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" conf:datamodel="" -xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> - -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - -<state id="s0"> - <onentry> - <assign conf:location="1" conf:illegalExpr=""/> - <raise event="foo"/> - </onentry> - <transition event="error.execution" conf:targetpass=""/> - <transition event=".*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test314.txml b/test/samples/w3c/txml/test314.txml deleted file mode 100644 index 7a2329e..0000000 --- a/test/samples/w3c/txml/test314.txml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- this is a manual test because the processor is allowed to reject this document. But if it executes it, -it should not raise an error until it gets to s03 and evaluates the illegal expr --> - -<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" - conf:datamodel="" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - - -<state id="s0" initial="s01"> - <transition event="error.execution" conf:targetfail=""/> - - <state id="s01"> - <transition target="s02"/> - </state> - - <state id="s02"> - <transition target="s03"/> - </state> - - <state id="s03"> - <onentry> - <assign conf:location="1" conf:illegalExpr=""/> - <raise event="foo"/> - </onentry> - <transition event="error.execution" conf:targetpass=""/> - <transition event=".*" conf:targetfail=""/> - </state> - -</state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test318.txml b/test/samples/w3c/txml/test318.txml deleted file mode 100644 index 9e71bc6..0000000 --- a/test/samples/w3c/txml/test318.txml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that _event stays bound during the onexit and entry into the next state --> - -<scxml initial="s0" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" conf:datamodel="" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1"/> - </datamodel> - - <state id="s0"> - <onentry> - <raise event="foo"/> - </onentry> - <transition event="foo" target="s1"/> - </state> - - <state id="s1"> - <onentry> - <raise event="bar"/> - <!-- _event should still be bound to 'foo' at this point --> - <assign conf:location="1" conf:eventName=""/> - </onentry> - <transition conf:idQuoteVal="1=foo" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test319.txml b/test/samples/w3c/txml/test319.txml deleted file mode 100644 index 50e4a97..0000000 --- a/test/samples/w3c/txml/test319.txml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that _event is not bound before any event has been raised --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" - name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s0"> - <onentry> - <if conf:systemVarIsBound="_event"> - <raise event="bound"/> - <else/> - <raise event="unbound"/> - </if> - </onentry> - <transition event="unbound" conf:targetpass=""/> - <transition event="bound" conf:targetfail=""/> - - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test321.txml b/test/samples/w3c/txml/test321.txml deleted file mode 100644 index 74da9c3..0000000 --- a/test/samples/w3c/txml/test321.txml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that _sessionid is bound on startup --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="$_sessionid"/> - </datamodel> - - <state id="s0"> -<transition conf:isBound="1" conf:targetpass=""/> - <transition conf:true="" conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test322.txml b/test/samples/w3c/txml/test322.txml deleted file mode 100644 index 6900eef..0000000 --- a/test/samples/w3c/txml/test322.txml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that _sessionid remains bound to the same value throught the session. this means that it can't -be assigned to --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:systemVarExpr="_sessionid"/> - <data conf:id="2"/> - </datamodel> - - <state id="s0"> - <transition target="s1"/> - - </state> - - <state id="s1"> - <onentry> - <assign conf:systemVarLocation="_sessionid" conf:quoteExpr="otherName"/> - <raise event="foo"/> - </onentry> - - <transition event="error.execution" target="s2"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s2"> - - <transition conf:idSystemVarVal="1=_sessionid" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test323.txml b/test/samples/w3c/txml/test323.txml deleted file mode 100644 index afd3400..0000000 --- a/test/samples/w3c/txml/test323.txml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that _name is bound on startup --> - -<scxml initial="s0" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" conf:datamodel="" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="$_name"/> - </datamodel> - - <state id="s0"> -<transition conf:isBound="1" conf:targetpass=""/> - <transition conf:true="" conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test324.txml b/test/samples/w3c/txml/test324.txml deleted file mode 100644 index d1b304d..0000000 --- a/test/samples/w3c/txml/test324.txml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that _name stays bound till the session ends. This means that it cannot be assigned to --> - -<scxml initial="s0" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" conf:datamodel="" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - - <state id="s0"> - <transition conf:nameVarVal="machineName" target="s1"/> - <transition conf:targetfail=""/> - </state> - - <state id="s1"> - <onentry> - <assign conf:systemVarLocation="_name" expr="'otherName'"/> - </onentry> - <transition conf:nameVarVal="machineName" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test325.txml b/test/samples/w3c/txml/test325.txml deleted file mode 100644 index 53623c3..0000000 --- a/test/samples/w3c/txml/test325.txml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that _ioprocessors is bound at startup. I'm not sure how to test for a set value or -how to test that the entries in it do represent I/O processors, since the set that each implementation -supports may be different. Suggestions welcome --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:systemVarExpr="_ioprocessors"/> - </datamodel> - - - <state id="s0"> - <transition conf:isBound="1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test326.txml b/test/samples/w3c/txml/test326.txml deleted file mode 100644 index 008e786..0000000 --- a/test/samples/w3c/txml/test326.txml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that _ioprocessors stays bound till the session ends. This means that it cannot be assigned to --> -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:systemVarExpr="_ioprocessors"/> - <data conf:id="2"/> - </datamodel> - - <state id="s0"> - <transition conf:isBound="1" target="s1"/> - <transition conf:true="" conf:targetfail=""/> - </state> - - - <state id="s1"> - <onentry> - <assign conf:systemVarLocation="_ioprocessors" conf:quoteExpr="otherName"/> - <raise event="foo"/> - </onentry> - - <transition event="error.execution" target="s2"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s2"> - <onentry> - <assign conf:location="2" conf:systemVarExpr="_ioprocessors"/> - </onentry> - <transition conf:VarEqVarStruct="1 2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test329.txml b/test/samples/w3c/txml/test329.txml deleted file mode 100644 index 2552e1f..0000000 --- a/test/samples/w3c/txml/test329.txml +++ /dev/null @@ -1,55 +0,0 @@ -<!-- test that none of the system variables can be modified --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1"/> - <data conf:id="2"/> - <data conf:id="3"/> - <data conf:id="4"/> - </datamodel> - - <state id="s0"> - <onentry> - <!-- get _event bound so we can use it in s1--> - <raise event="foo"/> - <assign conf:location="1" conf:systemVarExpr="_sessionid"/> - <assign conf:systemVarLocation="_sessionid" conf:invalidSessionID=""/> - </onentry> - - <transition event="foo" conf:idSystemVarVal="1=_sessionid" target="s1"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s1"> - <onentry> - <assign conf:location="2" conf:systemVarExpr="_event"/> - <assign conf:systemVarLocation="_event" expr="27"/> - </onentry> - <transition conf:idSystemVarVal="2=_event" target="s2"/> - <transition conf:targetfail=""/> - </state> - -<state id="s2"> - <onentry> - <assign conf:location="3" conf:systemVarExpr="_name"/> - <assign conf:systemVarLocation="_name" expr="27"/> - </onentry> - <transition conf:idSystemVarVal="3=_name" target="s3"/> - <transition conf:targetfail=""/> - </state> - - -<state id="s3"> - <onentry> - <assign conf:location="4" conf:systemVarExpr="_ioprocessors"/> - <assign conf:systemVarLocation="_ioprocessors" expr="27"/> - </onentry> - <transition conf:idSystemVarVal="4=_ioprocessors" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test330.txml b/test/samples/w3c/txml/test330.txml deleted file mode 100644 index 7778fad..0000000 --- a/test/samples/w3c/txml/test330.txml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0"?> - -<!-- check that the required fields are present in both internal and external events --> - -<scxml initial="s0" conf:datamodel="" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s0"> - <onentry> - <raise event="foo"/> - </onentry> - <transition event="foo" conf:eventFieldsAreBound="" target="s1"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s1"> - <onentry> - <send event="foo"/> - </onentry> - <transition event="foo" conf:eventFieldsAreBound="" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test331.txml b/test/samples/w3c/txml/test331.txml deleted file mode 100644 index a273b14..0000000 --- a/test/samples/w3c/txml/test331.txml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<scxml version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" name="machineName"> - -<!-- test that _event.type is set correctly for internal, platform, and external events --> -<datamodel> - <data conf:id="1"/> - </datamodel> - - <state id="s0"> - <onentry> - <!-- internal event --> - <raise event="foo"/> - </onentry> - <transition event="foo" target="s1"> - <assign conf:location="1" conf:eventType=""/> - </transition> - <transition event="*" target="fail"/> - </state> - -<state id="s1"> - <transition conf:idQuoteVal="1=internal" target="s2"/> - <transition conf:targetfail=""/> - </state> - -<state id="s2"> - <onentry> - <!-- this will generate an error, which is a platform event --> - <assign conf:location="2" conf:expr="1"/> - </onentry> - <transition event="error" target="s3"> - <assign conf:location="1" conf:eventType=""/> - </transition> - <transition event="*" target="fail"/> - </state> - -<state id="s3"> - <transition conf:idQuoteVal="1=platform" target="s4"/> - <transition conf:targetfail=""/> - </state> - - <state id="s4"> - <onentry> - <!-- external event --> - <send event="foo"/> - </onentry> - <transition event="foo" target="s5"> - <assign conf:location="1" conf:eventType=""/> - </transition> - <transition event="*" target="fail"/> - </state> - -<state id="s5"> - <transition conf:idQuoteVal="1=external" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - - <final xmlns="http://www.w3.org/2005/07/scxml" id="pass"><onentry><log label="Outcome" expr="'pass'"/></onentry></final> - <final xmlns="http://www.w3.org/2005/07/scxml" id="fail"><onentry><log label="Outcome" expr="'fail'"/></onentry></final> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test332.txml b/test/samples/w3c/txml/test332.txml deleted file mode 100644 index 0f87545..0000000 --- a/test/samples/w3c/txml/test332.txml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that sendid is present in error events triggered by send errors --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" initial="s0" conf:datamodel="" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1"/> - <data conf:id="2"/> - </datamodel> - - - <state id="s0"> - <onentry> - <!-- this will raise an error and also store the sendid in var1 --> - <send conf:illegalTarget="" event="foo" conf:idlocation="1"/> - </onentry> - <transition event="error" target="s1"> - <!-- get the sendid out of the error event --> - <assign conf:location="2" conf:eventSendid=""/> - </transition> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s1"> -<!-- make sure that the sendid in the error event matches the one generated when send executed --> - <transition conf:VarEqVar="1 2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test333.txml b/test/samples/w3c/txml/test333.txml deleted file mode 100644 index 38a5097..0000000 --- a/test/samples/w3c/txml/test333.txml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0"?> - -<!-- make sure sendid is blank in a non-error event --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" initial="s0" conf:datamodel="" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s0"> - <onentry> - <send event="foo"/> - </onentry> - <transition event="foo" conf:eventFieldHasNoValue="sendid" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test335.txml b/test/samples/w3c/txml/test335.txml deleted file mode 100644 index e9c70b2..0000000 --- a/test/samples/w3c/txml/test335.txml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that origin field is blank for internal events --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" initial="s0" conf:datamodel="" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s0"> - <onentry> - <raise event="foo"/> - </onentry> - <transition event="foo" conf:eventFieldHasNoValue="origin" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test336.txml b/test/samples/w3c/txml/test336.txml deleted file mode 100644 index 889cb94..0000000 --- a/test/samples/w3c/txml/test336.txml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that the origin field of an external event contains a URL that lets you send back to the originator. In -this case it's the same session, so if we get bar we succeed --> - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s0"> - <onentry> - <send event="foo"/> - </onentry> - <transition event="foo" target="s1"> - <conf:sendToSender name="bar"/> - </transition> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s1"> - <onentry> - <send event="baz"/> - </onentry> - <transition event="bar" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test337.txml b/test/samples/w3c/txml/test337.txml deleted file mode 100644 index 4d5e44f..0000000 --- a/test/samples/w3c/txml/test337.txml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that origintype is blank on internal events --> - -<scxml initial="s0" conf:datamodel="" version="1.0" name="machineName" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s0"> - <onentry> - <raise event="foo"/> - </onentry> - <transition event="foo" conf:eventFieldHasNoValue="origintype" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test338.txml b/test/samples/w3c/txml/test338.txml deleted file mode 100644 index 5f81086..0000000 --- a/test/samples/w3c/txml/test338.txml +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that invokeid is set correctly in events received from an invoked process. timeout event catches the -case where the invoke doesn't work correctly --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1"/> - <data conf:id="2"/> - </datamodel> - - <state id="s0"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - <invoke conf:idlocation="1" type="http://www.w3.org/TR/scxml/" > - <content> - <scxml initial="sub0" version="1.0" conf:datamodel="" name="machineName"> - <final id="sub0"> - <onentry> - <send target="#_parent" event="event1"/> - </onentry> - </final> - </scxml> - </content> - </invoke> - <transition event="event1" target="s1"> - <assign conf:location="2" conf:eventField="invokeid"/> - </transition> - <transition event="event0" conf:targetfail=""/> - </state> - -<state id="s1"> - <transition conf:VarEqVar="1 2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test339.txml b/test/samples/w3c/txml/test339.txml deleted file mode 100644 index 7ea1081..0000000 --- a/test/samples/w3c/txml/test339.txml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that invokeid is blank in an event that wasn't returned from an invoked process --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s0"> - <onentry> - <raise event="foo"/> - </onentry> - <transition event="foo" conf:eventFieldHasNoValue="invokeid" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test342.txml b/test/samples/w3c/txml/test342.txml deleted file mode 100644 index d8f330a..0000000 --- a/test/samples/w3c/txml/test342.txml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that eventexpr works and sets the name field of the resulting event --> -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:quoteExpr="foo"/> - <data conf:id="2"/> - </datamodel> - - <state id="s0"> - <onentry> - <send conf:eventExpr="1"/> - </onentry> - <transition event="foo" target="s1"> - <assign conf:location="2" conf:eventField="name"/> - </transition> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s1"> - <transition conf:VarEqVar="1 2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test343.txml b/test/samples/w3c/txml/test343.txml deleted file mode 100644 index 1d13da6..0000000 --- a/test/samples/w3c/txml/test343.txml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0"?> -<!-- test that illegal <param> produces error.execution and empty event.data --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" conf:datamodel="" initial="s0"> - - - <state id="s0" initial="s01"> - <!-- we should get the error before the done event --> - <transition event="error.execution" target="s1"/> - <transition event="done.state.s0" conf:targetfail=""/> - - <transition event="done.state.s0" conf:targetfail=""> - </transition> - - <state id="s01"> - <transition target="s02"/> - </state> - <final id="s02"> - <donedata> - <param conf:location="foo" name="someParam"/> - </donedata> - </final> - </state> - - - <!-- if we get here, we received the error event. Now check that the done - event has empty event.data --> - - <state id="s1"> - <transition event="done.state.s0" conf:emptyEventData="" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test344.txml b/test/samples/w3c/txml/test344.txml deleted file mode 100644 index 8bf6270..0000000 --- a/test/samples/w3c/txml/test344.txml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- test that a non-boolean cond expression evaluates to false and causes error.execution to be raised --> -<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" - conf:datamodel="" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0"> - -<state id="s0"> - <transition conf:nonBoolean="" conf:targetfail=""/> - <transition target="s1"/> - </state> - -<state id="s1"> - <onentry> - <raise event="foo"/> - </onentry> - <transition event="error.execution" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test346.txml b/test/samples/w3c/txml/test346.txml deleted file mode 100644 index 10db614..0000000 --- a/test/samples/w3c/txml/test346.txml +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that any attempt to change the value of a system variable causes error.execution to be raised. -Event1..4 are there to catch the case where the error event is not raised. In cases where it is, we have -to dispose of eventn in the next state, hence the targetless transitions (which simply throw away the event.) --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - - <state id="s0"> - <onentry> - <assign conf:systemVarLocation="_sessionid" conf:quoteExpr="otherName"/> - <raise event="event1"/> - </onentry> - - <transition event="error.execution" target="s1"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s1"> - <onentry> - <assign conf:systemVarLocation="_event" conf:quoteExpr="otherName"/> - <raise event="event2"/> - </onentry> - <!-- throw out event1 if it's still around --> - <transition event="event1"/> - <transition event="error.execution" target="s2"/> - <!-- event1 would trigger this transition if we didn't drop it. We want this transition to have - a very general trigger to catch cases where the wrong error event was raised --> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s2"> - <onentry> - <assign conf:systemVarLocation="_ioprocessors" conf:quoteExpr="otherName"/> - <raise event="event3"/> - </onentry> - <transition event="event2"/> - <transition event="error.execution" target="s3"/> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s3"> - <onentry> - <assign conf:systemVarLocation="_name" conf:quoteExpr="otherName"/> - <raise event="event4"/> - </onentry> - <transition event="event3"/> - <transition event="error.execution" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test355.txml b/test/samples/w3c/txml/test355.txml deleted file mode 100644 index 4136801..0000000 --- a/test/samples/w3c/txml/test355.txml +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0"?> -<!-- test that default initial state is first in document order. If we enter s0 first we succeed, if s1, failure. --> - - -<scxml conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <transition conf:targetpass=""/> -</state> - -<state id="s1"> - <transition conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test364.txml b/test/samples/w3c/txml/test364.txml deleted file mode 100644 index a302f54..0000000 --- a/test/samples/w3c/txml/test364.txml +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0"?> -<!-- test that default initial states are entered when a compound state is entered. First we test -the 'initial' attribute, then the initial element, then default to the first child in document order. -If we get to s01111 we succeed, if any other state, failure. --> - - -<scxml conf:datamodel="" initial="s1" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s1" initial="s11p112 s11p122"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - <state id="s11" initial="s111"> - <state id="s111"/> - <parallel id="s11p1"> - <state id="s11p11" initial="s11p111"> - <state id="s11p111"/> - <state id="s11p112"> - <onentry> - <raise event="In-s11p112"/> - </onentry> - </state> - </state> - <state id="s11p12" initial="s11p121"> - <state id="s11p121"/> - <state id="s11p122"> - <transition event="In-s11p112" target="s2"/> - </state> - </state> - </parallel> - </state> -</state> - -<state id="s2"> - <initial> - <transition target="s21p112 s21p122"/> - </initial> - <transition event="timeout" conf:targetfail=""/> - <state id="s21" initial="s211"> - <state id="s211"/> - <parallel id="s21p1"> - <state id="s21p11" initial="s21p111"> - <state id="s21p111"/> - <state id="s21p112"> - <onentry> - <raise event="In-s21p112"/> - </onentry> - </state> - </state> - <state id="s21p12" initial="s21p121"> - <state id="s21p121"/> - <state id="s21p122"> - <transition event="In-s21p112" target="s3"/> - </state> - </state> - </parallel> - </state> -</state> - -<state id="s3"> - <transition conf:targetfail=""/> - <state id="s31"> - <state id="s311"> - <state id="s3111"> - <transition conf:targetpass=""/> - </state> - <state id="s3112"/> - <state id="s312"/> - <state id="s32"/> -</state> -</state> -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test372.txml b/test/samples/w3c/txml/test372.txml deleted file mode 100644 index 84cb8f6..0000000 --- a/test/samples/w3c/txml/test372.txml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0"?> -<!-- test that entering a final state generates done.state.parentid after executing the onentry elements. -Var1 should be set to 2 (but not 3) by the time the event is raised --> - - -<scxml conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - -<state id="s0" initial="s0final"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="done.state.s0" conf:idVal="1=2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - - <final id="s0final"> - <onentry> - <assign conf:location="1" conf:expr="2"/> - </onentry> - <onexit> - <assign conf:location="1" conf:expr="3"/> - </onexit> - </final> -</state> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test375.txml b/test/samples/w3c/txml/test375.txml deleted file mode 100644 index 47d42c5..0000000 --- a/test/samples/w3c/txml/test375.txml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0"?> -<!-- test that onentry handlers are executed in document order. event1 should be raised before event2 --> - - -<scxml conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - - -<state id="s0"> - <onentry> - <raise event="event1"/> - </onentry> - <onentry> - <raise event="event2"/> - </onentry> - - <transition event="event1" target="s1"/> - <transition event="*" conf:targetfail=""/> - -</state> - -<state id="s1"> - <transition event="event2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test376.txml b/test/samples/w3c/txml/test376.txml deleted file mode 100644 index 86c2c2c..0000000 --- a/test/samples/w3c/txml/test376.txml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<!-- test that each onentry handler is a separate block. The <send> of event1 will cause an error but - the increment to var1 should happen anyways --> - - -<scxml conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - -<state id="s0"> - <onentry> - <send conf:illegalTarget="" event="event1"/> - </onentry> - <onentry> - <conf:incrementID id="1"/> - </onentry> - - <transition conf:idVal="1=2" conf:targetpass=""/> - <transition conf:targetfail=""/> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test377.txml b/test/samples/w3c/txml/test377.txml deleted file mode 100644 index bca44ca..0000000 --- a/test/samples/w3c/txml/test377.txml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0"?> -<!-- test that onexit handlers are executed in document order. event1 should be raised before event2 --> - - -<scxml conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - - -<state id="s0"> - <onexit> - <raise event="event1"/> - </onexit> - <onexit> - <raise event="event2"/> - </onexit> - - <transition target="s1"/> - </state> - - <state id="s1"> - - <transition event="event1" target="s2"/> - <transition event="*" conf:targetfail=""/> - -</state> - -<state id="s2"> - <transition event="event2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> -</state> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test378.txml b/test/samples/w3c/txml/test378.txml deleted file mode 100644 index 0e553c4..0000000 --- a/test/samples/w3c/txml/test378.txml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0"?> -<!-- test that each onexithandler is a separate block. The <send> of event1 will cause an error but - the increment to var1 should happen anyways --> - - -<scxml version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - -<state id="s0"> - <onexit> - <send conf:illegalTarget="" event="event1"/> - </onexit> - <onexit> - <conf:incrementID id="1"/> - </onexit> - -<transition target="s1"/> -</state> - -<state id="s1"> - <transition conf:idVal="1=2" conf:targetpass=""/> - <transition conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test387.txml b/test/samples/w3c/txml/test387.txml deleted file mode 100644 index 8997580..0000000 --- a/test/samples/w3c/txml/test387.txml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the default history state works correctly. From initial state s3 we take a transition to s0's default -shallow history state. That should generate "enteringS011", which takes us to s4. In s4, we -transition to s1's default deep history state. We should end up in s122, generating "enteringS122". Otherwise failure.--> - - -<scxml initial="s3" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - - <transition event="enteringS011" target="s4"/> - <transition event="*" conf:targetfail=""/> - - <history type="shallow" id="s0HistShallow"> - <transition target="s01"/> - </history> - <history type="deep" id="s0HistDeep"> - <transition target="s022"/> - </history> - <state id="s01" initial="s011"> - <state id="s011"> - <onentry> - <raise event="enteringS011"/> - </onentry> - </state> - <state id="s012"> - <onentry> - <raise event="enteringS012"/> - </onentry> - </state> - </state> - <state id="s02" initial="s021"> - <state id="s021"> - <onentry> - <raise event="enteringS021"/> - </onentry> - </state> - <state id="s022"> - <onentry> - <raise event="enteringS022"/> - </onentry> - </state> - </state> - -</state> - -<state id="s1" initial="s11"> - - <transition event="enteringS122" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - - <history type="shallow" id="s1HistShallow"> - <transition target="s11"/> - </history> - <history type="deep" id="s1HistDeep"> - <transition target="s122"/> - </history> - <state id="s11" initial="s111"> - <state id="s111"> - <onentry> - <raise event="enteringS111"/> - </onentry> - </state> - <state id="s112"> - <onentry> - <raise event="enteringS112"/> - </onentry> - </state> - </state> - <state id="s12" initial="s121"> - <state id="s121"> - <onentry> - <raise event="enteringS121"/> - </onentry> - </state> - <state id="s122"> - <onentry> - <raise event="enteringS122"/> - </onentry> - </state> - </state> - -</state> - - -<state id="s3"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <transition target="s0HistShallow"/> -</state> - -<state id="s4"> - <transition target="s1HistDeep"/> -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test388.txml b/test/samples/w3c/txml/test388.txml deleted file mode 100644 index 36d58cc..0000000 --- a/test/samples/w3c/txml/test388.txml +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0"?> -<!-- test that history states works correctly. The counter Var1 counts how many times -we have entered s0. The initial state is s012. We then transition to s1, which transitions -to s0's deep history state. entering.s012 should be raised, otherwise failure. Then we transition -to s02, which transitions to s0's shallow history state. That should have value s01, and its initial -state is s011, so we should get entering.s011, otherwise failure.--> - - -<scxml version="1.0" initial="s012" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - -<state id="s0" initial="s01"> - <onentry> - <conf:incrementID id="1"/> - </onentry> - - <!-- the first time through, go to s1, setting a timer just in case something hangs --> - <transition event="entering.s012" conf:idVal="1=1" target="s1"> - <send event="timeout" delay="2s"/> - </transition> - - <!-- the second time, we should get entering.s012. If so, go to s2, otherwise fail --> - <transition event="entering.s012" conf:idVal="1=2" target="s2"/> - <transition event="entering" conf:idVal="1=2" conf:targetfail=""/> - - <!-- the third time we should get entering-s011. If so, pass, otherwise fail --> - <transition event="entering.s011" conf:idVal="1=3" conf:targetpass=""/> - <transition event="entering" conf:idVal="1=3" conf:targetfail=""/> - - <!-- if we timeout, the state machine is hung somewhere, so fail --> - <transition event="timeout" conf:targetfail=""/> - - <history type="shallow" id="s0HistShallow"> - <transition target="s02"/> - </history> - <history type="deep" id="s0HistDeep"> - <transition target="s022"/> - </history> - <state id="s01" initial="s011"> - <state id="s011"> - <onentry> - <raise event="entering.s011"/> - </onentry> - </state> - <state id="s012"> - <onentry> - <raise event="entering.s012"/> - </onentry> - </state> - </state> - <state id="s02" initial="s021"> - <state id="s021"> - <onentry> - <raise event="entering.s021"/> - </onentry> - </state> - <state id="s022"> - <onentry> - <raise event="entering.s022"/> - </onentry> - </state> - </state> - -</state> - - -<state id="s1"> - <transition target="s0HistDeep"/> -</state> - -<state id="s2"> - <transition target="s0HistShallow"/> -</state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test396.txml b/test/samples/w3c/txml/test396.txml deleted file mode 100644 index 3af03c9..0000000 --- a/test/samples/w3c/txml/test396.txml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the value in _event.name matches the event name used to match against transitions --> - - -<scxml conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s0"> - <onentry> - <raise event="foo"/> - </onentry> - - - <transition event="foo" conf:eventNameVal="foo" conf:targetpass=""/> - <transition event="foo" conf:targetfail=""/> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test399.txml b/test/samples/w3c/txml/test399.txml deleted file mode 100644 index 9eeced2..0000000 --- a/test/samples/w3c/txml/test399.txml +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the event name matching works correctly, including prefix matching and the fact -that the event attribute of transition may contain multiple event designators. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="2s"/> - </onentry> - - <!-- this will catch the failure case --> - <transition event="timeout" conf:targetfail=""/> - - <state id="s01"> - <onentry> - <raise event="foo"/> - </onentry> - <!-- test that an event can match against a transition with multiple descriptors --> - <transition event="foo bar" target="s02"/> - </state> - - <state id="s02"> - <onentry> - <raise event="bar"/> - </onentry> - <!-- test that an event can match the second descriptor as well --> - <transition event="foo bar" target="s03"/> - </state> - - <state id="s03"> - <onentry> - <raise event="foo.zoo"/> - </onentry> - <!-- test that a prefix descriptor matches --> - <transition event="foo bar" target="s04"/> - </state> - -<state id="s04"> - <onentry> - <raise event="foos"/> - </onentry> - <!-- test that only token prefixes match --> - <transition event="foo" conf:targetfail=""/> - <transition event="foos" target="s05"/> -</state> - -<state id="s05"> - <onentry> - <raise event="foo.zoo"/> - </onentry> - <!-- test that .* works at the end of a descriptor --> - <transition event="foo.*" target="s06"/> - </state> - - <state id="s06"> - <onentry> - <raise event="foo"/> - </onentry> - <!-- test that "*" works by itself --> - <transition event="*" conf:targetpass=""/> - </state> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test401.txml b/test/samples/w3c/txml/test401.txml deleted file mode 100644 index a42b719..0000000 --- a/test/samples/w3c/txml/test401.txml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0"?> -<!-- test that errors go in the internal event queue. We send ourselves an external event foo, then perform -and operation that raises an error. Then check that the error event is processed first, even though -it was raised second --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="foo"/> - <!-- assigning to a non-existent location should raise an error --> - <assign conf:location="1" conf:expr="2"/> - </onentry> - - - <transition event="foo" conf:targetfail=""/> - <transition event="error" conf:targetpass=""/> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test402.txml b/test/samples/w3c/txml/test402.txml deleted file mode 100644 index 24e84e1..0000000 --- a/test/samples/w3c/txml/test402.txml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0"?> -<!-- the assertion that errors are 'like any other event' is pretty broad, but we can check that they -are pulled off the internal queue in order, and that prefix matching works on them. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <!-- catch the failure case --> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - - <state id="s01"> - <onentry> - <!-- the first internal event. The error will be the second, and event2 will be the third --> - <raise event="event1"/> - <!-- assigning to a non-existent location should raise an error --> - <assign conf:location="1" conf:expr="2"/> - </onentry> - - <transition event="event1" target="s02"> - <raise event="event2"/> - </transition> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s02"> - <transition event="error" target="s03"/> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s03"> - <transition event="event2" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test403a.txml b/test/samples/w3c/txml/test403a.txml deleted file mode 100644 index 88bc4dc..0000000 --- a/test/samples/w3c/txml/test403a.txml +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0"?> -<!-- we test one part of 'optimal enablement' meaning that of all transitions that are enabled, we chose the ones -in child states over parent states, and use document order to break ties. We have -a parent state s0 with two children, s01 and s02. In s01, we test that a) if -a transition in the child matches, we don't consider matches in the parent and b) -that if two transitions match in any state, we take the first in document order. -In s02 we test that we take a transition in the parent if there is no -matching transition in the child. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <!-- catch the failure case --> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - <transition event="event1" conf:targetfail=""/> - <transition event="event2" conf:targetpass=""/> - - <state id="s01"> - <onentry> - <!-- this should be caught by the first transition in this state, taking us to S02 --> - <raise event="event1"/> - </onentry> - - <transition event="event1" target="s02"/> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s02"> - <onentry> - <!-- since the local transition has a cond that evaluates to false this should be caught by a - transition in the parent state, taking us to pass --> - <raise event="event2"/> - </onentry> - <transition event="event1" conf:targetfail=""/> - <transition event="event2" conf:false="" conf:targetfail=""/> - </state> - -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test403b.txml b/test/samples/w3c/txml/test403b.txml deleted file mode 100644 index c3ee1f8..0000000 --- a/test/samples/w3c/txml/test403b.txml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that 'optimally enabled set' really is a set, specifically that if a transition is optimally enabled in -two different states, it is taken only once. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - -<state id="s0" initial="p0"> - <!-- this transition should never be taken because a transition in a lower state should - always be selected --> - <transition event="event1"> - <conf:incrementID id="1"/> - </transition> - - - - <parallel id="p0"> - - <onentry> - <raise event="event1"/> - <raise event="event2"/> - </onentry> - - <!-- this transition will be selected by both states p0s1 and p0s2, but should be executed only once --> - <transition event="event1"> - <conf:incrementID id="1"/> - </transition> - - <state id="p0s1"> - <transition event="event2" conf:idVal="1=1" conf:targetpass=""/> - <transition event="event2" conf:targetfail=""/> - </state> - - <state id="p0s2"/> - -</parallel> -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test403c.txml b/test/samples/w3c/txml/test403c.txml deleted file mode 100644 index 8af1aac..0000000 --- a/test/samples/w3c/txml/test403c.txml +++ /dev/null @@ -1,58 +0,0 @@ -<?xml version="1.0"?> -<!-- we test 'optimally enabled set', specifically that preemption works correctly --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" expr="0"/> - </datamodel> - -<state id="s0" initial="p0"> - <onentry> - <raise event="event1"/> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="event2" conf:targetfail=""/> - <transition event="timeout" conf:targetfail=""/> - - <parallel id="p0"> - - <state id="p0s1"> - <transition event="event1"/> - <transition event="event2"/> - </state> - - <state id="p0s2"> - <transition event="event1" target="p0s1"> - <raise event="event2"/> - </transition> - - </state> - - <state id="p0s3"> - <!-- this transition should be blocked by the one in p0s2--> - <transition event="event1" conf:targetfail=""/> - <!-- this transition will preempt the one that p0s2 inherits - from an ancestor --> - <transition event="event2" target="s1"/> - - </state> - -<state id="p0s4"> - <!-- this transition never gets preempted, should fire twice --> - <transition event="*"> - <conf:incrementID id="1"/> - </transition> - </state> - -</parallel> -</state> - -<state id="s1"> - <transition conf:idVal="1=2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test404.txml b/test/samples/w3c/txml/test404.txml deleted file mode 100644 index 6734dbd..0000000 --- a/test/samples/w3c/txml/test404.txml +++ /dev/null @@ -1,64 +0,0 @@ -<?xml version="1.0"?> -<!-- test that states are exited in exit order (children before parents with reverse doc order used to break ties - before the executable content in the transitions. event1, event2, event3, event4 should be raised in that - order when s01p is exited --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01p"> - - - -<parallel id="s01p"> - <onexit> - <!-- this should be the 3rd event raised --> - <raise event="event3"/> - </onexit> - <transition target="s02"> - <!-- this should be the fourth event raised --> - <raise event="event4"/> - </transition> - - <state id="s01p1"> - <onexit> - <!-- this should be the second event raised --> - <raise event="event2"/> - </onexit> - </state> - - <state id="s01p2"> - <!-- this should be the first event raised --> - <onexit> - <raise event="event1"/> - </onexit> - </state> - </parallel> - - <state id="s02"> - <transition event="event1" target="s03"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s03"> - <transition event="event2" target="s04"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s04"> - <transition event="event3" target="s05"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s05"> - <transition event="event4" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - </state> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test405.txml b/test/samples/w3c/txml/test405.txml deleted file mode 100644 index ca8254e..0000000 --- a/test/samples/w3c/txml/test405.txml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the executable content in the transitions is executed in document order after -the states are exited. event1, event2, event3, event4 should be raised in that order when the -state machine is entered --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" - xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s0" initial="s01p"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - -<parallel id="s01p"> - <transition event="event1" target="s02"/> - - - <state id="s01p1" initial="s01p11"> - <state id="s01p11"> - <onexit> - <!-- this should be the second event raised --> - <raise event="event2"/> - </onexit> - <transition target="s01p12"> - <!-- this should be the third event raised --> - <raise event="event3"/> - </transition> - </state> - <state id="s01p12"/> - </state> <!-- end s01p1 --> - - <state id="s01p2" initial="s01p21"> - <state id="s01p21"> - <onexit> - <!-- this should be the first event raised --> - <raise event="event1"/> - </onexit> - <transition target="s01p22"> - <!-- this should be the fourth event raised --> - <raise event="event4"/> - </transition> - </state> - <state id="s01p22"/> - - </state> <!-- end s01p2 --> - </parallel> - - - <state id="s02"> - <transition event="event2" target="s03"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s03"> - <transition event="event3" target="s04"/> - <transition event="*" conf:targetfail=""/> - </state> - - - <state id="s04"> - <transition event="event4" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - </state> <!-- end s01 --> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test406.txml b/test/samples/w3c/txml/test406.txml deleted file mode 100644 index 9504381..0000000 --- a/test/samples/w3c/txml/test406.txml +++ /dev/null @@ -1,68 +0,0 @@ -<?xml version="1.0"?> -<!-- Test that states are entered in entry order (parents before children with document order used to break ties) -after the executable content in the transition is executed. event1, event2, event3, event4 should be raised in that -order when the transition in s01 is taken --> - -<scxml version="1.0" initial="s0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" - xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - - <state id="s01"> - <transition target="s0p2"> - <!-- this should be the first event raised --> - <raise event="event1"/> - </transition> - </state> - -<parallel id="s0p2"> - - <transition event="event1" target="s03"/> - - <state id="s01p21" > - <onentry> - <!-- third event --> - <raise event="event3"/> - </onentry> - </state> - - <state id="s01p22"> - <onentry> - <!-- the fourth event --> - <raise event="event4"/> - </onentry> - </state> - - <onentry> - <!-- this should be the second event raised --> - <raise event="event2"/> - </onentry> - </parallel> - - - <state id="s03"> - <transition event="event2" target="s04"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s04"> - <transition event="event3" target="s05"/> - <transition event="*" conf:targetfail=""/> - </state> - - - <state id="s05"> - <transition event="event4" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - </state> <!-- end s0 --> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test407.txml b/test/samples/w3c/txml/test407.txml deleted file mode 100644 index fdef966..0000000 --- a/test/samples/w3c/txml/test407.txml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0"?> -<!-- a simple test that onexit handlers work. var1 should be incremented when we leave s0 --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - -<state id="s0"> - <onexit> - <conf:incrementID id="1"/> - </onexit> - <transition target="s1"/> -</state> - -<state id="s1"> - <transition conf:idVal="1=1" conf:targetpass=""/> - <transition conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test409.txml b/test/samples/w3c/txml/test409.txml deleted file mode 100644 index abc92ee..0000000 --- a/test/samples/w3c/txml/test409.txml +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that states are removed from the active states list as they are exited. When s01's onexit handler -fires, s011 should not be on the active state list, so in(S011) should be false, and event1 should not -be raised. Therefore the timeout should fire to indicate success --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - - <transition event="timeout" conf:targetpass=""/> - <transition event="event1" conf:targetfail=""/> - - <state id="s01" initial="s011"> - <onexit> - <if conf:inState="s011"> - <raise event="event1"/> - </if> - </onexit> - - <state id="s011"> - <transition target="s02"/> - </state> - </state> <!-- end s01 --> - -<state id="s02"/> - -</state> <!-- end s0 --> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test411.txml b/test/samples/w3c/txml/test411.txml deleted file mode 100644 index 149e21e..0000000 --- a/test/samples/w3c/txml/test411.txml +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that states are added to the active states list as they are entered and before onentry handlers -are executed. When s0's onentry handler fires we should not be in s01. But when s01's onentry handler -fires, we should be in s01. Therefore event1 should not fire, but event2 should. Either event1 or -timeout also indicates failure --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="1s"/> - <if conf:inState="s01"> - <raise event="event1"/> - </if> - </onentry> - - <transition event="timeout" conf:targetfail=""/> - <transition event="event1" conf:targetfail=""/> - <transition event="event2" conf:targetpass=""/> - - <state id="s01" > - <onentry> - <if conf:inState="s01"> - <raise event="event2"/> - </if> - </onentry> - </state> - -</state> <!-- end s0 --> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test412.txml b/test/samples/w3c/txml/test412.txml deleted file mode 100644 index 6eb703f..0000000 --- a/test/samples/w3c/txml/test412.txml +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0"?> -<!-- test that executable content in the <initial> transition executes after the onentry handler on the state -and before the onentry handler of the child states. Event1, event2, and event3 should occur in that order. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0" initial="s01"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - - <transition event="timeout" conf:targetfail=""/> - <transition event="event1" conf:targetfail=""/> - <transition event="event2" conf:targetpass=""/> - - <state id="s01" > - <onentry> - <raise event="event1"/> - </onentry> - <initial> - <transition target="s011"> - <raise event="event2"/> - </transition> - </initial> - - <state id="s011"> - <onentry> - <raise event="event3"/> - </onentry> - <transition target="s02"/> - </state> - </state> - -<state id="s02"> - <transition event="event1" target="s03"/> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s03"> - <transition event="event2" target="s04"/> - <transition event="*" conf:targetfail=""/> - </state> - -<state id="s04"> - <transition event="event3" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -</state> <!-- end s0 --> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test413.txml b/test/samples/w3c/txml/test413.txml deleted file mode 100644 index 0ac00e3..0000000 --- a/test/samples/w3c/txml/test413.txml +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the state machine is put into the configuration specified by the initial element, without regard -to any other defaults. we should start off in s2p111 and s2p122. the atomic -states we should not enter all have immediate transitions to failure in them --> - - -<scxml initial="s2p112 s2p122" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s1"> - <transition conf:targetfail=""/> - </state> - -<state id="s2" initial="s2p1"> - -<parallel id="s2p1"> - <!-- this transition will be triggered only if we end up in an illegal configuration where we're in - either s2p112 or s2p122, but not both of them --> - <transition conf:targetfail=""/> - - <state id="s2p11" initial="s2p111" > - <state id="s2p111"> - <transition conf:targetfail=""/> - </state> - - <state id="s2p112"> - <transition conf:inState="s2p122" conf:targetpass=""/> - </state> - - </state> <!-- end s2p11 --> - - <state id="s2p12" initial="s2p121"> - <state id="s2p121"> - <transition conf:targetfail=""/> - </state> - - <state id="s2p122"> - <transition conf:inState="s2p112" conf:targetpass=""/> - </state> - </state> - -</parallel> - -</state> <!-- end s2 --> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test416.txml b/test/samples/w3c/txml/test416.txml deleted file mode 100644 index bb0b6f5..0000000 --- a/test/samples/w3c/txml/test416.txml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the done.state.id gets generated when we enter the final state of a compound state --> - - -<scxml version="1.0" initial="s1" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s1" initial="s11"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - - <state id="s11" initial="s111"> - <transition event="done.state.s11" conf:targetpass=""/> - <state id="s111"> - <transition target="s11final"/> - </state> - <final id="s11final"/> - </state> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test417.txml b/test/samples/w3c/txml/test417.txml deleted file mode 100644 index 5963d68..0000000 --- a/test/samples/w3c/txml/test417.txml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0"?> -<!-- test that we get the done.state.id event when all of a -parallel elements children enter final states. --> - - - -<scxml version="1.0" initial="s1" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s1" initial="s1p1"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - - <parallel id="s1p1"> - <transition event="done.state.s1p1" conf:targetpass=""/> - - <state id="s1p11" initial="s1p111"> - <state id="s1p111"> - <transition target="s1p11final"/> - </state> - <final id="s1p11final"/> - </state> - - <state id="s1p12" initial="s1p121"> - <state id="s1p121"> - <transition target="s1p12final"/> - </state> - <final id="s1p12final"/> - </state> - - </parallel> -</state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test419.txml b/test/samples/w3c/txml/test419.txml deleted file mode 100644 index 2d8fab7..0000000 --- a/test/samples/w3c/txml/test419.txml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0"?> -<!-- test that eventless transitions take precedence over event-driven ones --> - - - -<scxml version="1.0" initial="s1" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s1"> - <onentry> - <raise event="internalEvent"/> - <send event="externalEvent"/> - </onentry> - - <transition event="*" conf:targetfail=""/> - <transition conf:targetpass=""/> - -</state> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test421.txml b/test/samples/w3c/txml/test421.txml deleted file mode 100644 index 4f92719..0000000 --- a/test/samples/w3c/txml/test421.txml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0"?> -<!-- test that internal events take priority over external ones, and that the processor -keeps pulling off internal events until it finds one that triggers a transition --> - - - -<scxml version="1.0" initial="s1" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s1" initial="s11"> - <onentry> - <send event="externalEvent"/> - <raise event="internalEvent1"/> - <raise event="internalEvent2"/> - <raise event="internalEvent3"/> - <raise event="internalEvent4"/> - </onentry> - - <transition event="externalEvent" conf:targetfail=""/> - - <state id="s11"> - <transition event="internalEvent3" target="s12"/> - </state> - - <state id="s12"> - <transition event="internalEvent4" conf:targetpass=""/> - </state> - -</state> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test422.txml b/test/samples/w3c/txml/test422.txml deleted file mode 100644 index 2e830d9..0000000 --- a/test/samples/w3c/txml/test422.txml +++ /dev/null @@ -1,78 +0,0 @@ -<?xml version="1.0"?> -<!-- Test that at the end of a macrostep, the processor executes all invokes in states -that have been entered and not exited during the step. (The invokes are supposed to be executed -in document order, but we can test that since each invocation is separate and they may take -different amounts to time to start up.) In this case, there are three invoke statements, -in states s1, s11 and s12. Each invoked process returns an event named after its parent state. -The invokes in s1 and s12 should execute, but not the one -in s11. So we should receive invokeS1, invokeS12, but not invokeS12. Furthermore, when the timeout fires, var1 should equal 2.--> - -<scxml version="1.0" initial="s1" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> - </datamodel> - <state id="s1" initial="s11"> - <onentry> - <send event="timeout" delay="5s"/> - </onentry> - <transition event="invokeS1 invokeS12"> - <conf:incrementID id="1"/> - </transition> - <transition event="invokeS11" conf:targetfail=""/> - - <transition event="timeout" conf:idVal="1=2" conf:targetpass=""/> - <transition event="timeout" conf:targetfail=""/> - <invoke> - <content> - <!-- when invoked, send 'foo' to parent, then terminate. --> - <scxml initial="sub0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub0"> - <onentry> - <send target="#_parent" event="invokeS1"/> - </onentry> - <transition target="subFinal0"/> - </state> - <final id="subFinal0"/> - </scxml> - </content> - </invoke> - - <state id="s11"> - <invoke> - <content> - <!-- when invoked, send 'foo' to parent, then terminate. --> - <scxml initial="sub1" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub1"> - <onentry> - <send target="#_parent" event="invokeS11"/> - </onentry> - <transition target="subFinal1"/> - </state> - <final id="subFinal1"/> - </scxml> - </content> - </invoke> - <transition target="s12"/> - </state> - <state id="s12"> - <invoke> - <content> - <!-- when invoked, send 'foo' to parent, then terminate. --> - <scxml initial="sub2" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <state id="sub2"> - <onentry> - <send target="#_parent" event="invokeS12"/> - </onentry> - <transition target="subFinal2"/> - </state> - <final id="subFinal2"/> - </scxml> - </content> - </invoke> - </state> - </state> - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test423.txml b/test/samples/w3c/txml/test423.txml deleted file mode 100644 index fd64587..0000000 --- a/test/samples/w3c/txml/test423.txml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<!-- test that we keep pulling external events off the queue till we find one that matches a transition. --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - - <state id="s0"> - <onentry> - <send event="externalEvent1"/> - <send event="externalEvent2" delay="1s"/> - <raise event="internalEvent"/> - </onentry> - <!-- in this state we should process only internalEvent --> - <transition event="internalEvent" target="s1"/> - <transition event="*" conf:targetfail=""/> - </state> - - <state id="s1"> - <!-- in this state we ignore externalEvent1 and wait for externalEvent2 --> - <transition event="externalEvent2" conf:targetpass=""/> - <transition event="internalEvent" conf:targetfail=""/> - </state> - - - <conf:pass/> - <conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test487.txml b/test/samples/w3c/txml/test487.txml deleted file mode 100644 index 7210c2b..0000000 --- a/test/samples/w3c/txml/test487.txml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0"?> -<!-- test illegal assignment. error.execution should be raised. --> - - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:illegalExpr=""/> - </datamodel> - -<state id="s0"> - <onentry> - <raise event="event"/> - </onentry> - - <transition event="error.execution" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test488.txml b/test/samples/w3c/txml/test488.txml deleted file mode 100644 index c0bb5e4..0000000 --- a/test/samples/w3c/txml/test488.txml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0"?> -<!-- test that illegal expr in <param> produces error.execution and empty event.data --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" conf:datamodel="" initial="s0"> - - - <state id="s0" initial="s01"> - <!-- we should get the error before the done event --> - <transition event="error.execution" target="s1"/> - <transition event="done.state.s0" conf:targetfail=""/> - - <transition event="done.state.s0" conf:targetfail=""> - </transition> - - <state id="s01"> - <transition target="s02"/> - </state> - <final id="s02"> - <donedata> - <param conf:illegalExpr="" name="someParam"/> - </donedata> - </final> - </state> - - - <!-- if we get here, we received the error event. Now check that the done - event has empty event.data --> - - <state id="s1"> - <transition event="done.state.s0" conf:eventdataVal="" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test503.txml b/test/samples/w3c/txml/test503.txml deleted file mode 100644 index d15bb7e..0000000 --- a/test/samples/w3c/txml/test503.txml +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that a targetless transition does not exit and reenter its source state --> - -<scxml initial="s1" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> <!-- how often we have exited s2 --> - <data conf:id="2" conf:expr="0"/> <!-- how often the targetless transition in s2 has been executed --> - </datamodel> - - <state id="s1"> - <onentry> - <raise event="foo"/> - <raise event="bar"/> - </onentry> - <transition target="s2"/> - </state> - - <state id="s2"> - <onexit> - <conf:incrementID id="1"/> - </onexit> - <transition event="foo"> - <conf:incrementID id="2"/> - </transition> - <!-- make sure the transition on foo was actually taken --> - <transition event="bar" conf:idVal="2=1" target="s3"/> - <transition event="bar" conf:targetfail=""/> - </state> - - <state id="s3"> - <!-- make sure that s2 was exited only once --> - <transition conf:idVal="1=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test504.txml b/test/samples/w3c/txml/test504.txml deleted file mode 100644 index 62f601b..0000000 --- a/test/samples/w3c/txml/test504.txml +++ /dev/null @@ -1,79 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that an external transition exits all states up the the LCCA --> - -<scxml initial="s1" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> <!-- how often we have exited p --> - <data conf:id="2" conf:expr="0"/> <!-- how often we have exited ps1 --> - <data conf:id="3" conf:expr="0"/> <!-- how often we have exited ps2 --> - <data conf:id="4" conf:expr="0"/> <!-- how often the transition for foo has been taken --> - <data conf:id="5" conf:expr="0"/> <!-- how often we have exited s2 --> - </datamodel> - - <state id="s1"> - <onentry> - <raise event="foo"/> - <raise event="bar"/> - </onentry> - <transition target="p"/> - </state> - -<state id="s2"> - <onexit> - <conf:incrementID id="5"/> - </onexit> - -<parallel id="p"> - <onexit> - <conf:incrementID id="1"/> - </onexit> - <transition event="foo" target="ps1"> - <conf:incrementID id="4"/> - </transition> - - <!-- make sure the transition on foo was actually taken --> - <transition event="bar" conf:idVal="4=1" target="s3"/> - <transition event="bar" conf:targetfail=""/> - - <state id="ps1"> - <onexit> - <conf:incrementID id="2"/> - </onexit> - </state> - <state id="ps2"> - <onexit> - <conf:incrementID id="3"/> - </onexit> - </state> -</parallel> -</state> - -<state id="s3"> - <!-- make sure that p was exited twice --> - <transition conf:idVal="1=2" target="s4"/> - <transition conf:targetfail=""/> - </state> - -<state id="s4"> - <!-- make sure that ps1 was exited twice --> - <transition conf:idVal="2=2" target="s5"/> - <transition conf:targetfail=""/> - </state> - -<state id="s5"> - <!-- make sure that ps2 was exited twice --> - <transition conf:idVal="3=2" target="s6"/> - <transition conf:targetfail=""/> - </state> - -<state id="s6"> - <!-- make sure that s1 was exited once --> - <transition conf:idVal="5=1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test505.txml b/test/samples/w3c/txml/test505.txml deleted file mode 100644 index b141186..0000000 --- a/test/samples/w3c/txml/test505.txml +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that an internal transition does not exit its source state --> - -<scxml initial="s1" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> <!-- how often we have exited s1 --> - <data conf:id="2" conf:expr="0"/> <!-- how often we have exited s11 --> - <data conf:id="3" conf:expr="0"/> <!-- how often the transition for foo has been taken --> - </datamodel> - - <state id="s1"> - <onentry> - <raise event="foo"/> - <raise event="bar"/> - </onentry> - <onexit> - <conf:incrementID id="1"/> - </onexit> - <transition event="foo" type="internal" target="s11"> - <conf:incrementID id="3"/> - </transition> - - <!-- make sure the transition on foo was actually taken --> - <transition event="bar" conf:idVal="3=1" target="s2"/> - <transition event="bar" conf:targetfail=""/> - - <state id="s11"> - <onexit> - <conf:incrementID id="2"/> - </onexit> - </state> - </state> - -<state id="s2"> - <!-- make sure that s1 was exited once --> - <transition conf:idVal="1=1" target="s3"/> - <transition conf:targetfail=""/> - </state> - - -<state id="s3"> - <!-- make sure that s11 was exited twice --> - <transition conf:idVal="2=2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test506.txml b/test/samples/w3c/txml/test506.txml deleted file mode 100644 index b820ad5..0000000 --- a/test/samples/w3c/txml/test506.txml +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that an internal transition whose targets are not proper descendants of its source state -behaves like an external transition --> - -<scxml initial="s1" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> <!-- how often we have exited s2 --> - <data conf:id="2" conf:expr="0"/> <!-- how often we have exited s21 --> - <data conf:id="3" conf:expr="0"/> <!-- how often the transition for foo has been taken --> - </datamodel> - - <state id="s1"> - <onentry> - <raise event="foo"/> - <raise event="bar"/> - </onentry> - <transition target="s2"/> - </state> - -<state id="s2" initial="s21"> - <onexit> - <conf:incrementID id="1"/> - </onexit> - <transition event="foo" type="internal" target="s2"> - <conf:incrementID id="3"/> - </transition> - - <!-- make sure the transition on foo was actually taken --> - <transition event="bar" conf:idVal="3=1" target="s3"/> - <transition event="bar" conf:targetfail=""/> - - <state id="s21"> - <onexit> - <conf:incrementID id="2"/> - </onexit> - </state> - -</state> - -<state id="s3"> - <!-- make sure that s2 was exited twice --> - <transition conf:idVal="1=2" target="s4"/> - <transition conf:targetfail=""/> - </state> - -<state id="s4"> - <!-- make sure that s21 was exited twice --> - <transition conf:idVal="2=2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test521.txml b/test/samples/w3c/txml/test521.txml deleted file mode 100644 index 75743ef..0000000 --- a/test/samples/w3c/txml/test521.txml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that the processor raises error.communication if it cannot dispatch the event. -(To create an undispatchable event, we choose a non-existent session as target). If it raises -the error event, we succeed. Otherwise we eventually timeout and fail. --> - - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <!-- should cause an error --> - <send conf:unreachableTarget="" event="event2"/> - <!-- this will get added to the external event queue after the error has been raised --> - <send event="timeout"/> - </onentry> - - <!-- once we've entered the state, we should check for internal events first --> - <transition event="error.communication" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test525.txml b/test/samples/w3c/txml/test525.txml deleted file mode 100644 index 4b367eb..0000000 --- a/test/samples/w3c/txml/test525.txml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0"?> -<!-- test that <foreach> does a shallow copy, so that modifying the array does not change -the iteration behavior. --> - - -<scxml conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1"> - <conf:array123/> - </data> - <data conf:id="2" conf:expr="0"/> <!-- counts the number of iterations --> - </datamodel> - -<state id="s0"> - <onentry> - <foreach conf:item="3" conf:arrayVar="1"> - <conf:extendArray id="1"/> - <conf:incrementID id="2"/> - </foreach> - </onentry> - - <transition conf:idVal="2=3" conf:targetpass=""/> - <transition conf:targetfail=""/> -</state> - - - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test527.txml b/test/samples/w3c/txml/test527.txml deleted file mode 100644 index 80894a7..0000000 --- a/test/samples/w3c/txml/test527.txml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<!-- simple test that 'expr' works with <content> --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" conf:datamodel="" initial="s0"> - - - <state id="s0" initial="s01"> - - <transition event="done.state.s0" conf:eventdataVal="foo" conf:targetpass=""> - </transition> - - <transition event="done.state.s0" conf:targetfail=""> - </transition> - - <state id="s01"> - <transition target="s02"/> - </state> - <final id="s02"> - <donedata> - <content conf:quoteExpr="foo"/> - </donedata> - </final> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test528.txml b/test/samples/w3c/txml/test528.txml deleted file mode 100644 index 69b7bb2..0000000 --- a/test/samples/w3c/txml/test528.txml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0"?> -<!-- test that illegal 'expr' produces error.execution and empty event.data --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" conf:datamodel="" initial="s0"> - - - <state id="s0" initial="s01"> - <!-- we should get the error before the done event --> - <transition event="error.execution" target="s1"/> - <transition event="done.state.s0" conf:targetfail=""/> - - <transition event="done.state.s0" conf:targetfail=""> - </transition> - - <state id="s01"> - <transition target="s02"/> - </state> - <final id="s02"> - <donedata> - <content conf:illegalExpr=""/> - </donedata> - </final> - </state> - - - <!-- if we get here, we received the error event. Now check that the done - event has empty event.data --> - - <state id="s1"> - <transition event="done.state.s0" conf:emptyEventData="" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test529.txml b/test/samples/w3c/txml/test529.txml deleted file mode 100644 index 6a6656c..0000000 --- a/test/samples/w3c/txml/test529.txml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<!-- simple test that children workn with <content> --> - -<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" conf:datamodel="" initial="s0"> - - - <state id="s0" initial="s01"> - - <transition event="done.state.s0" conf:eventdataVal="21" conf:targetpass=""> - </transition> - - <transition event="done.state.s0" conf:targetfail=""> - </transition> - - <state id="s01"> - <transition target="s02"/> - </state> - <final id="s02"> - <donedata> - <content>21</content> - </donedata> - </final> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test530.txml b/test/samples/w3c/txml/test530.txml deleted file mode 100644 index d64a8d8..0000000 --- a/test/samples/w3c/txml/test530.txml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0"?> -<!-- test that <content> child is evaluated when <invoke> is. Var1 is initialized -with an integer value, then set to an scxml script in the onentry to s0. If <content> -is evaluated at the right time, we should get invoke.done, otherwise an error --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" conf:expr="1"/> - </datamodel> - - <state id="s0"> - <onentry> - <assign conf:location="1"> - <scxml version="1.0"><final/></scxml> - </assign> - <send event="timeout" delay="2s"/> - </onentry> - - <invoke type="http://www.w3.org/TR/scxml/"> - <content conf:varChildExpr="1"/> - </invoke> - - <transition event="done.invoke" conf:targetpass=""/> - <transition event="*" conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - </scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test533.txml b/test/samples/w3c/txml/test533.txml deleted file mode 100644 index 7a6c82a..0000000 --- a/test/samples/w3c/txml/test533.txml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that an internal transition whose source state is not compound does exit its source state --> - -<scxml initial="s1" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> -<datamodel> - <data conf:id="1" conf:expr="0"/> <!-- how often we have exited p --> - <data conf:id="2" conf:expr="0"/> <!-- how often we have exited ps1 --> - <data conf:id="3" conf:expr="0"/> <!-- how often we have exited ps2 --> - <data conf:id="4" conf:expr="0"/> <!-- how often the transition for foo has been taken --> - </datamodel> - - <state id="s1"> - <onentry> - <raise event="foo"/> - <raise event="bar"/> - </onentry> - <transition target="p"/> - </state> - -<parallel id="p"> - <onexit> - <conf:incrementID id="1"/> - </onexit> - <transition event="foo" type="internal" target="ps1"> - <conf:incrementID id="4"/> - </transition> - - <!-- make sure the transition on foo was actually taken --> - <transition event="bar" conf:idVal="4=1" target="s2"/> - <transition event="bar" conf:targetfail=""/> - - <state id="ps1"> - <onexit> - <conf:incrementID id="2"/> - </onexit> - </state> - <state id="ps2"> - <onexit> - <conf:incrementID id="3"/> - </onexit> - </state> -</parallel> - -<state id="s2"> - <!-- make sure that p was exited twice --> - <transition conf:idVal="1=2" target="s3"/> - <transition conf:targetfail=""/> - </state> - -<state id="s3"> - <!-- make sure that ps1 was exited twice --> - <transition conf:idVal="2=2" target="s4"/> - <transition conf:targetfail=""/> - </state> - -<state id="s4"> - <!-- make sure that ps2 was exited twice --> - <transition conf:idVal="3=2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test550.txml b/test/samples/w3c/txml/test550.txml deleted file mode 100644 index 89f55a7..0000000 --- a/test/samples/w3c/txml/test550.txml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that expr can be used to assign a value to a var. This test uses early binding --> - -<scxml initial="s0" version="1.0" conf:datamodel="" binding="early" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - <state id="s0"> - - <transition conf:idVal="1=2" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <state id="s1"> - <datamodel> - <data conf:id="1" conf:expr="2"/> - </datamodel> - </state> - - <conf:pass/> - <conf:fail/> - - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test551.txml b/test/samples/w3c/txml/test551.txml deleted file mode 100644 index 45c6bf8..0000000 --- a/test/samples/w3c/txml/test551.txml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that inline content can be used to assign a value to a var. --> - -<scxml initial="s0" version="1.0" binding="early" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - - <state id="s0"> - - <transition conf:isBound="1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - -<state id="s1"> - <datamodel> - <data conf:id="1"> - <conf:array123/> - </data> - </datamodel> - </state> - - <conf:pass/> - <conf:fail/> - - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test552.txml b/test/samples/w3c/txml/test552.txml deleted file mode 100644 index 9489b3e..0000000 --- a/test/samples/w3c/txml/test552.txml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0"?> - -<!-- test that src content can be used to assign a value to a var. Edit -test552.txt to have a value that's legal for the datamodel in question --> - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <datamodel> - <data conf:id="1" src="file:test552.txt"/> - </datamodel> - - <state id="s0"> - - <transition conf:isBound="1" conf:targetpass=""/> - <transition conf:targetfail=""/> - </state> - - <conf:pass/> - <conf:fail/> - - - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test553.txml b/test/samples/w3c/txml/test553.txml deleted file mode 100644 index 322d4bb..0000000 --- a/test/samples/w3c/txml/test553.txml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0"?> -<!-- we test that the processor does not dispatch the event if evaluation -of <send>'s args causes an error.. --> - - -<scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <!-- timeout event --> - <send event="timeout" delay="3s"/> - <!-- include a non-existing var in the namelist --> - <send event="event1" conf:namelist="2"/> - </onentry> - - <!-- if we get the timeout before event1, we assume that event1 hasn't been sent - We ignore the error event here because this assertion doesn't mention it --> - <transition event="timeout" conf:targetpass=""/> - <transition event="event1" conf:targetfail=""/> - </state> - - -<conf:pass/> -<conf:fail/> - -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test554.txml b/test/samples/w3c/txml/test554.txml deleted file mode 100644 index d9ad55b..0000000 --- a/test/samples/w3c/txml/test554.txml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0"?> -<!-- test that if the evaluation of <invoke>'s args causes an error, the -invocation is cancelled. In this test, that means that we don't get done.invoke -before the timer goes off. --> - - -<scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <onentry> - <send event="timer" delay="2s"/> - </onentry> - - <!-- namelist references an undeclared variable --> - <invoke type="http://www.w3.org/TR/scxml/" conf:namelist="2"> - <content> - <scxml initial="subFinal" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - <final id="subFinal"/> - </scxml> - </content> - </invoke> - <transition event="timer" conf:targetpass=""/> - <transition event="done.invoke" conf:targetfail=""/> - </state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test570.txml b/test/samples/w3c/txml/test570.txml deleted file mode 100644 index 6584d9a..0000000 --- a/test/samples/w3c/txml/test570.txml +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0"?>
-
-<!-- test that we generate done.state.id when all a parallel state's children are in final states -->
-
-<scxml initial="p0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
- <datamodel>
- <data conf:id="1" conf:expr="0"/>
- </datamodel>
-<parallel id="p0">
- <onentry>
- <send event="timeout" delay="2s"/>
- <raise event="e1"/>
- <raise event="e2"/>
- </onentry>
- <!-- record that we get the first done event -->
- <transition event="done.state.p0s1">
- <assign conf:location="1" conf:expr="1"/>
- </transition>
- <!-- we should get the second done event before done.state.p0 -->
- <transition event="done.state.p0s2" target="s1"/>
- <transition event="timeout" conf:targetfail=""/>
-
-
- <state id="p0s1" initial="p0s11">
- <state id="p0s11">
- <transition event="e1" target="p0s1final"/>
- </state>
- <final id="p0s1final"/>
- </state>
-
- <state id="p0s2" initial="p0s21">
- <state id="p0s21">
- <transition event="e2" target="p0s2final"/>
- </state>
- <final id="p0s2final"/>
- </state>
-
- </parallel>
-
- <state id="s1">
- <!-- if we get done.state.p0, success -->
- <transition event="done.state.p0" conf:idVal="1=1" conf:targetpass=""/>
- <transition event="*" conf:targetfail=""/>
- </state>
-
- <conf:pass/>
- <conf:fail/>
-
-</scxml>
\ No newline at end of file diff --git a/test/samples/w3c/txml/test576.txml b/test/samples/w3c/txml/test576.txml deleted file mode 100644 index 4c4b34a..0000000 --- a/test/samples/w3c/txml/test576.txml +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0"?> -<!-- test that the 'initial' value of scxml is respected. We set the value to deeply nested non-default parallel siblings and -test that both are entered. --> - - -<scxml initial="s11p112 s11p122" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance"> - - -<state id="s0"> - <transition conf:targetfail=""/> -</state> - -<state id="s1"> - <onentry> - <send event="timeout" delay="1s"/> - </onentry> - <transition event="timeout" conf:targetfail=""/> - <state id="s11" initial="s111"> - <state id="s111"/> - <parallel id="s11p1"> - <state id="s11p11" initial="s11p111"> - <state id="s11p111"/> - <state id="s11p112"> - <onentry> - <raise event="In-s11p112"/> - </onentry> - </state> - </state> - <state id="s11p12" initial="s11p121"> - <state id="s11p121"/> - <state id="s11p122"> - <transition event="In-s11p112" conf:targetpass=""/> - </state> - </state> - </parallel> - </state> -</state> - -<conf:pass/> -<conf:fail/> -</scxml>
\ No newline at end of file |