[SCXML] Incorrect and incomplete test 330 for ecmascript

Hi,

While 'cloning' a style sheet to generate scxml tests for a custom language, I 
discovered the confEcma.xsl template for "//@conf:eventFieldsAreBound" is 
incomplete/incorrect:

   <!-- returns true if all the required fields of _event are bound -->
   <xsl:template match="//@conf:eventFieldsAreBound">
     <xsl:attribute name="cond">'name' in _event &amp;&amp; 'type' in _event 
&amp;&amp; 'sendid' in _event &amp;&amp; 'origin' in _event &amp;&amp; 
'invokeid' &amp;&amp; 'data' in _event</xsl:attribute>
   </xsl:template>

should be:

   <!-- returns true if all the required fields of _event are bound -->
   <xsl:template match="//@conf:eventFieldsAreBound">
     <xsl:attribute name="cond">'name' in _event &amp;&amp; 'type' in _event 
&amp;&amp; 'sendid' in _event &amp;&amp; 'origin' in _event &amp;&amp; 
'origintype' in _event &amp;&amp; 'invokeid' in _event &amp;&amp; 'data' in 
_event</xsl:attribute>
   </xsl:template>

The above template is (only) used in test 330.

For the record, the same template in confXpath.xsl is correct.

Regards, Ate

Received on Wednesday, 11 February 2015 22:18:01 UTC