summaryrefslogtreecommitdiffstats
path: root/test/w3c/confEcma.xsl
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-01 22:51:30 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-01 22:51:30 (GMT)
commit945160d0539ad119ffc986fac712db76c7203e84 (patch)
treec43e4a7db898026bc62cc20af5061d07736f847e /test/w3c/confEcma.xsl
parentc70d02010ea99e6c8e35da3b767f41f1ee5dce56 (diff)
downloaduscxml-945160d0539ad119ffc986fac712db76c7203e84.zip
uscxml-945160d0539ad119ffc986fac712db76c7203e84.tar.gz
uscxml-945160d0539ad119ffc986fac712db76c7203e84.tar.bz2
More polishing for bindings C# and Java
Diffstat (limited to 'test/w3c/confEcma.xsl')
-rw-r--r--test/w3c/confEcma.xsl14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/w3c/confEcma.xsl b/test/w3c/confEcma.xsl
index af3c8d2..ffc922d 100644
--- a/test/w3c/confEcma.xsl
+++ b/test/w3c/confEcma.xsl
@@ -165,6 +165,8 @@
<content xmlns="http://www.w3.org/2005/07/scxml">foo</content>
</xsl:template>
+
+
<!-- this returns something that is guaranteed not to be the ID of the current session -->
<xsl:template match="//@conf:invalidSessionID">
<xsl:attribute name="expr">27</xsl:attribute>
@@ -241,8 +243,14 @@
</xsl:template>
<!-- delayexpr takes the value of the specified variable -->
-<xsl:template match="//@conf:delayExpr">
- <xsl:attribute name="delayexpr">Var<xsl:value-of select="." /></xsl:attribute>
+<xsl:template match="//@conf:delayFromVar">
+ <xsl:attribute name="delayexpr">(Var<xsl:value-of select="." />.slice(0, - 1)) * 50 + 'ms'</xsl:attribute>
+</xsl:template>
+
+<!-- computes a delayexpr based on the value passed in. this lets platforms determine how long to delay timeout
+events which cause the test to fail. The default value provided here is pretty long -->
+<xsl:template match="//@conf:delay">
+ <xsl:attribute name="delayexpr">'<xsl:value-of select=". * 50"/>ms'</xsl:attribute>
</xsl:template>
<!-- the specified variable is used as idlocation -->
@@ -722,4 +730,4 @@ it allows anything after the = -->
<xsl:template match="//@conf:msgIsBody">
<xsl:attribute name="cond">_event.raw.match(/\n\naddress=(.*)$/)</xsl:attribute>
</xsl:template>
-</xsl:stylesheet> \ No newline at end of file
+</xsl:stylesheet>