Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
… into 2.0.0
  • Loading branch information
jbeard4 committed Feb 20, 2015
2 parents ba88b99 + e6f9273 commit 1e0f1ac
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
14 changes: 14 additions & 0 deletions test/send-idlocation/test0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"initialConfiguration" : ["s0"],
"events" : [
{
"event" : { "name" : "t1" },
"nextConfiguration" : ["s1"]
},
{
"after" : 100,
"event" : { "name" : "t2" },
"nextConfiguration" : ["pass"]
}
]
}
45 changes: 45 additions & 0 deletions test/send-idlocation/test0.scxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<scxml xmlns="http://www.w3.org/2005/07/scxml"
version="1.0"
initial="uber">

<datamodel>
<data id="httpid" expr="'foo'"/>
</datamodel>


<state id="uber">

<state id="s0">
<onentry>
<!-- make sure we do not clobber send/@id when id is $scion.sendid* -->
<send id="$scion.sendid0" event="ignore" delay="1ms" type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor"/>
<send idlocation="httpid" event="ignore" delay="2ms" type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor"/>
</onentry>
<transition event="t1" target="s1"/>
</state>
<state id="s1">
<onentry>
<log label="httpid" expr="httpid" />
</onentry>
<transition event="t2" target="pass" cond="httpid !== 'foo' &amp;&amp; httpid !== '$scion.sendid0'"/>
<transition event="t2" target="fail"/>
</state>
<state id="s2">
<transition event="t2" target="pass"/>
</state>
</state>

<final id="pass">
<onentry>
<log expr="'RESULT: pass'" label="TEST"/>
</onentry>
</final>

<final id="fail">
<onentry>
<log expr="'RESULT: fail'" label="TEST"/>
</onentry>
</final>

</scxml>

2 changes: 1 addition & 1 deletion test/w3c-ecma/test332.txml.scxml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
<final id="pass"><onentry><log label="Outcome" expr="'pass'"/></onentry></final>
<final id="fail"><onentry><log label="Outcome" expr="'fail'"/></onentry></final>

</scxml>
</scxml>

0 comments on commit 1e0f1ac

Please sign in to comment.