diff options
Diffstat (limited to 'test/w3c/xpath')
-rw-r--r-- | test/w3c/xpath/test350.scxml | 24 | ||||
-rw-r--r-- | test/w3c/xpath/test446.scxml | 2 | ||||
-rw-r--r-- | test/w3c/xpath/test446.txt | 12 |
3 files changed, 37 insertions, 1 deletions
diff --git a/test/w3c/xpath/test350.scxml b/test/w3c/xpath/test350.scxml new file mode 100644 index 0000000..848ed71 --- /dev/null +++ b/test/w3c/xpath/test350.scxml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?><!-- test that target value is used to decide what session to deliver the event to. A session should be +able to send an event to itself using its own session ID as the target --><scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" datamodel="xpath" version="1.0"> +<datamodel> + <data id="Var1" expr="'#_scxml_'"/> + <data id="Var2" expr="$_sessionid"/> +</datamodel> + +<state id="s0"> + + <onentry> + <assign location="$Var1" expr="concat($Var1, $Var2)"/> + <send delay="5s" event="timeout"/> + <send type="http://www.w3.org/TR/scxml/#SCXMLEventProcessor" targetexpr="$Var1" event="s0Event"/> + </onentry> + <transition event="s0Event" target="pass"/> + <transition event="*" target="fail"/> + +</state> + + + <final id="pass"><onentry><log label="Outcome" expr="'pass'"/></onentry></final> + <final id="fail"><onentry><log label="Outcome" expr="'fail'"/></onentry></final> + +</scxml>
\ No newline at end of file diff --git a/test/w3c/xpath/test446.scxml b/test/w3c/xpath/test446.scxml index 0fa8698..64ab3c9 100644 --- a/test/w3c/xpath/test446.scxml +++ b/test/w3c/xpath/test446.scxml @@ -2,7 +2,7 @@ assigns it as the value of the var --><scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" version="1.0" datamodel="ecmascript"> <datamodel> <data id="var1">[1, 2, 3]</data> - <data id="var2" src="file:test458.txt"/> + <data id="var2" src="file:test446.txt"/> </datamodel> <state id="s0"> diff --git a/test/w3c/xpath/test446.txt b/test/w3c/xpath/test446.txt new file mode 100644 index 0000000..4db4843 --- /dev/null +++ b/test/w3c/xpath/test446.txt @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> +<html><head> +<title>300 Multiple Choices</title> +</head><body> +<h1>Multiple Choices</h1> +The document name you requested (<code>/Voice/2013/scxml-irp/446/test446.txt</code>) could not be found on this server. +However, we found documents with names similar to the one you requested.<p>Available documents: +<ul> +<li><a href="/Voice/2013/scxml-irp/446/test446.txml">/Voice/2013/scxml-irp/446/test446.txml</a> (common basename) +</ul> +Please consider informing the owner of the <a href="http://www.w3.org/Voice/2013/scxml-irp/">referring page</a> about the broken link. +</body></html> |