diff options
Diffstat (limited to 'test/w3c/confEcma.xsl')
-rw-r--r-- | test/w3c/confEcma.xsl | 14 |
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> |