- From: Philippe Le Hegaret via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 07 Jul 2006 17:50:07 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite
In directory hutz:/tmp/cvs-serv11421/test-suite
Modified Files:
assertions-report.xsl assertions-report.html
Log Message:
A bit of improvement.
Index: assertions-report.xsl
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/assertions-report.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -C 2 -d -r1.5 -r1.6
*** assertions-report.xsl 6 Jul 2006 19:59:05 -0000 1.5
--- assertions-report.xsl 7 Jul 2006 17:50:05 -0000 1.6
***************
*** 22,25 ****
--- 22,28 ----
<style type='text/css'>
th, td { border: 1px solid black; padding: 0.5ex }
+ th { background: #ccc }
+ .good { background: green }
+ .bad { background: red }
.class, .count { text-align: center }
</style>
***************
*** 29,33 ****
<xsl:variable name='assertions'
select='document("assertions.xml")/assertions/assertion'/>
! <p><xsl:value-of select='count($assertions)'/> assertions.</p>
<table>
<thead>
--- 32,53 ----
<xsl:variable name='assertions'
select='document("assertions.xml")/assertions/assertion'/>
! <xsl:variable name='count'
! select='count($assertions)'/>
! <xsl:variable name='count_component'
! select='count($assertions[@class="component"])'/>
! <xsl:variable name='count_document'
! select='count($assertions[@class="document"])'/>
! <xsl:variable name='count_exchange'
! select='count($assertions[@class="exchange"])'/>
! <xsl:variable name='count_message'
! select='count($assertions[@class="message"])'/>
! <p><xsl:value-of select='$count'/> assertions
! (<xsl:value-of select='$count_component'/> component,
! <xsl:value-of select='$count_document'/> document,
! <xsl:value-of select='$count_exchange'/> exchange,
! <xsl:value-of select='$count_message'/> message).
! <xsl:value-of select='count($assertions[@part="1"])'/> for part 1,
! <xsl:value-of select='count($assertions[@part="2"])'/> for part 2.
! </p>
<table>
<thead>
***************
*** 36,39 ****
--- 56,60 ----
<th>Count</th>
<th>Assertion</th>
+ <th>Synopsis</th>
<th>Class</th>
<th>Tests</th>
***************
*** 47,63 ****
<xsl:variable name='violations'
select='$ViolatesAssertions/ViolateAssertion[@assertion=$id]'/>
! <xsl:variable name='count'
select='count($violations)'/>
<tr>
<td>
! <xsl:attribute name="bgcolor">
<xsl:choose>
! <xsl:when test="$count = 0">red</xsl:when>
! <xsl:otherwise>green</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:text> </xsl:text>
</td>
! <td class='count'><xsl:value-of select='$count'/></td>
<td>
<a href='{concat(@origin, "/#", @id)}'><xsl:value-of select='$id' /></a>
--- 68,85 ----
<xsl:variable name='violations'
select='$ViolatesAssertions/ViolateAssertion[@assertion=$id]'/>
! <xsl:variable name='count_violations'
select='count($violations)'/>
+
<tr>
<td>
! <xsl:attribute name="class">
<xsl:choose>
! <xsl:when test="$count_violations = 0">bad</xsl:when>
! <xsl:otherwise>good</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:text> </xsl:text>
</td>
! <td class='count'><xsl:value-of select='$count_violations'/></td>
<td>
<a href='{concat(@origin, "/#", @id)}'><xsl:value-of select='$id' /></a>
Index: assertions-report.html
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/assertions-report.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -C 2 -d -r1.8 -r1.9
*** assertions-report.html 7 Jul 2006 16:22:26 -0000 1.8
--- assertions-report.html 7 Jul 2006 17:50:05 -0000 1.9
***************
*** 7,10 ****
--- 7,13 ----
<style type="text/css">
th, td { border: 1px solid black; padding: 0.5ex }
+ th { background: #ccc }
+ .good { background: green }
+ .bad { background: red }
.class, .count { text-align: center }
</style>
***************
*** 12,16 ****
[...2944 lines suppressed...]
<td>
--- 2276,2280 ----
</tr>
<tr>
! <td class="bad"> </td>
<td class="count">0</td>
<td>
***************
*** 2275,2279 ****
</tr>
<tr>
! <td bgcolor="red"> </td>
<td class="count">0</td>
<td>
--- 2286,2290 ----
</tr>
<tr>
! <td class="bad"> </td>
<td class="count">0</td>
<td>
Received on Friday, 7 July 2006 17:50:16 UTC