background: #bbbbbb;
}
span.zero { color: #A0A0A0; }
- a.node { color:#0000FF; text-decoration: none; visited: #FF0000; }
+ a.node { color: #0000FF }
</style>
<script language="JavaScript"><![CDATA[
function Toggle(id) {
+ collapsealltext();
var element = document.getElementById(id);
if ( element.style.display == "none" )
{
divlist[i].style.display = "none";
}
+ }
+ function collapsealltext() {
+ var divlist = document.getElementsByName("text");
+ for (i = 0; i < divlist.length; i++)
+ {
+ divlist[i].style.display = "none";
+ }
}
]]></script>
<h3>Tests</h3>
- <xsl:for-each select="tests/grid">
- <b>grid <xsl:value-of select="@name" /></b><br/><br/>
+ <xsl:for-each select="tests/testbase">
+ <b>test base <xsl:value-of select="@name" /></b><br/><br/>
<a name="test"/>
- <xsl:apply-templates select="." mode="test-grid" />
+ <xsl:apply-templates select="." mode="test-base" />
</xsl:for-each>
</xsl:template>
-<xsl:template match="grid" mode="test-grid">
+<xsl:template match="testbase" mode="test-base">
<table>
<!-- Header -->
<tr bgcolor="#9acd32">
- <th width="150">module</th>
+ <th width="150">grid</th>
<th width="100">success</th>
<th width="200"></th>
<th width="100">total</th>
<th width="100">Time</th>
</tr>
- <xsl:for-each select="./module">
+ <xsl:for-each select="./grid">
<xsl:variable name="total" select="count(.//test)"/>
<xsl:variable name="failureCount" select="count(.//test[@res='KO'])"/>
<xsl:variable name="successCount" select="count(.//test[@res='OK'])"/>
<br/>
<!-- Show details -->
- <xsl:for-each select="./module">
+ <xsl:for-each select="./grid">
<xsl:sort select="@name" />
- <xsl:sort select="@type" />
+ <xsl:sort select="@session" />
<div style="display:none" name="mod"><xsl:attribute name="id">mod_<xsl:value-of select="../@name"/>.<xsl:value-of select="@name"/></xsl:attribute>
- Tests of module <b><xsl:value-of select="@name"/></b>
+ Tests of grid <b><xsl:value-of select="@name"/></b>
<table width="100%">
<tr bgcolor="#9acd32">
- <th width="100">type</th>
+ <th width="100">session</th>
<th>script</th>
<th width="100">result</th>
<th width="100">time</th>
</tr>
- <xsl:for-each select="./type">
+ <xsl:for-each select="./session">
<xsl:sort select="@name" />
<tr>
<xsl:choose>
<xsl:when test="count(./callback) != 0">
<tr>
- <td align="left"><xsl:attribute name="class"><xsl:value-of select="@res" /></xsl:attribute><xsl:value-of select="@script" /></td>
+ <td align="left">
+ <xsl:attribute name="class"><xsl:value-of select="@res" /></xsl:attribute>
+ <a href="#content" class="node">
+ <xsl:attribute name="onclick">javascript:Toggle('<xsl:value-of select="@script"/>')</xsl:attribute>
+ <xsl:attribute name="title">Click to see the script content</xsl:attribute>
+ <xsl:value-of select="@script" />
+ </a>
+  
+ <a href="#content" class="node">
+ <xsl:attribute name="onclick">javascript:Toggle('<xsl:value-of select="@script"/>log')</xsl:attribute>
+ <xsl:attribute name="title">Click to see the execution log</xsl:attribute>
+ log
+ </a>
+ </td>
<td align="center"><xsl:attribute name="class"><xsl:value-of select="@res" /></xsl:attribute><xsl:value-of select="@res" /></td>
<td align="right"><xsl:value-of select="format-number(@exec_time, '0.0')" /></td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
- <td align="left"><xsl:value-of select="@script" /></td>
+ <td align="left">
+ <a href="#content" class="node">
+ <xsl:attribute name="onclick">javascript:Toggle('<xsl:value-of select="@script"/>')</xsl:attribute>
+ <xsl:attribute name="title">Click to see the script content</xsl:attribute>
+ <xsl:value-of select="@script" />
+ </a>
+  
+ <a href="#content" class="node">
+ <xsl:attribute name="onclick">javascript:Toggle('<xsl:value-of select="@script"/>log')</xsl:attribute>
+ <xsl:attribute name="title">Click to see the execution log</xsl:attribute>
+ log
+ </a>
+ </td>
<td align="center"><xsl:attribute name="class"><xsl:value-of select="@res" /></xsl:attribute><xsl:value-of select="@res" /></td>
<td align="right"><xsl:value-of select="format-number(@exec_time, '0.0')" /></td>
</tr>
</xsl:choose>
<xsl:if test="count(./amend) != 0">
<tr>
- <td class="ko"><b>Amended</b></td>
+ <td class="ko"><b>Amended</b></td>
<td align="left" colspan="3"><xsl:value-of select="./amend" /></td>
</tr>
</xsl:if>
</table>
</div>
</xsl:for-each>
-
+
+ <xsl:for-each select="./grid">
+ <xsl:for-each select="./session">
+ <xsl:for-each select="./test">
+ <div style="display:none" name="text"><xsl:attribute name="id"><xsl:value-of select="@script"/></xsl:attribute>
+ <PRE><xsl:value-of select="./content"/></PRE>
+ </div>
+ <div style="display:none" name="text"><xsl:attribute name="id"><xsl:value-of select="@script"/>log</xsl:attribute>
+ <PRE><xsl:value-of select="./out"/></PRE>
+ </div>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:for-each>
+
</xsl:template>
<xsl:template name="display-percent">