User: kimptoc 
  Date: 01/09/25 15:49:23

  Modified:    src/stylesheets junit-frames.xsl
  Log:
  make the colors more sane for konqueror
  
  Revision  Changes    Path
  1.3       +19 -15    jbosstest/src/stylesheets/junit-frames.xsl
  
  Index: junit-frames.xsl
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/stylesheets/junit-frames.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- junit-frames.xsl  2001/09/03 21:32:12     1.2
  +++ junit-frames.xsl  2001/09/25 22:49:23     1.3
  @@ -1,3 +1,5 @@
  +<?xml version='1.0' encoding='ISO-8859-1'?>
  +
   <xsl:stylesheet      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
        xmlns:lxslt="http://xml.apache.org/xslt";
        xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
  @@ -24,7 +26,7 @@
       Note: HTML output can be made much more clean by removing non css attributes
   
       ====================================================================== -->
  -<xsl:output method="html" indent="yes"/>
  +<xsl:output method="html" encoding="ISO-8859-1" indent="yes"/>
   <xsl:decimal-format decimal-separator="." grouping-separator=","/>
   
   <!--
  @@ -110,7 +112,7 @@
   <xsl:template name="index.html">
   <html>
        <head>
  -             <title>JBoss Test Suite Results.</title>
  +             <title>JBoss Test Suite Results</title>
        </head>
        <frameset cols="20%,80%">
                <frameset rows="30%,70%">
  @@ -169,19 +171,19 @@
   }
   .Error {
        font-weight:bold;
  -     color:white;
  +     color:#FFFFFF;
   }
   .Failure {
        font-weight:bold;
  -     color:white;
  +     color:#FFFFFF;
   }
   .ErrorDetail {
        font-weight:bold;
  -     color:red;
  +     color:#FF0000;
   }
   .FailureDetail {
        font-weight:bold;
  -     color:purple;
  +     color:#800080;
   }
   .Info {
     font-size: x-small
  @@ -370,7 +372,7 @@
                        <td><strong>Success rate</strong></td>
                        <td><strong>Time</strong></td>
                </tr>
  -             <tr bgcolor="#EEEEE" valign="top">
  +             <tr bgcolor="#FFEBCD" valign="top">
                        <xsl:attribute name="class">
                                <xsl:choose>
                                        <xsl:when test="$errorCount &gt; 
0">ErrorDetail</xsl:when>
  @@ -409,8 +411,8 @@
                                <xsl:sort select="@package" order="ascending"/>
                                <!-- get the node set containing all testsuites that 
have the same package -->
                                <xsl:variable name="insamepackage" 
select="/testsuites/testsuite[./@package = current()/@package]"/>
  -                             <tr bgcolor="#EEEEE" valign="top">
  -                                 <xsl:if test='sum($insamepackage/@errors)!=0 or 
sum($insamepackage/@failures)!=0'><xsl:attribute name='bgcolor'>red</xsl:attribute>
  +                             <tr bgcolor="#FFEBCD" valign="top">
  +                                 <xsl:if test='sum($insamepackage/@errors)!=0 or 
sum($insamepackage/@failures)!=0'><xsl:attribute name='bgcolor'>#FF0000</xsl:attribute>
                       </xsl:if>
   
                                        <!-- display a failure if there is any 
failure/error in the package -->
  @@ -422,9 +424,11 @@
                                                </xsl:choose>
                                        </xsl:attribute>
                                        <td><a 
href="{translate(@package,'.','/')}/package-summary.html">
  -                                         <font color='black'>
  -                                         <xsl:if 
test='sum($insamepackage/@errors)!=0 or 
sum($insamepackage/@failures)!=0'><xsl:attribute name='color'>white</xsl:attribute>
  -                            </xsl:if>
  +                                         <font color='#000000'>
  +                                         <xsl:if 
test='sum($insamepackage/@errors)!=0 or 
  +                                                          
sum($insamepackage/@failures)!=0'>
  +                                                  <xsl:attribute 
name='color'>#FFFFFF</xsl:attribute>
  +                                            </xsl:if>
                                            <xsl:value-of 
select="@package"/></font></a></td>
                                        <td><xsl:value-of 
select="sum($insamepackage/@tests)"/></td>
                                        <td><xsl:value-of 
select="sum($insamepackage/@errors)"/></td>
  @@ -568,8 +572,8 @@
   
   <!-- class information -->
   <xsl:template match="testsuite" mode="print.test">
  -     <tr bgcolor="#EEEEE" valign="top">              
  -         <xsl:if test='@errors!=0 or @failures!=0'><xsl:attribute 
name='bgcolor'>red</xsl:attribute>
  +     <tr bgcolor="#FFEBCD" valign="top">             
  +         <xsl:if test='@errors!=0 or @failures!=0'><xsl:attribute 
name='bgcolor'>#FF0000</xsl:attribute>
           </xsl:if>
                <xsl:attribute name="class">
                        <xsl:choose>
  @@ -590,7 +594,7 @@
   </xsl:template>
   
   <xsl:template match="testcase" mode="print.test">
  -     <tr bgcolor="#EEEEE" valign="top">
  +     <tr bgcolor="#FFEBCD" valign="top">
            <xsl:attribute name="class">
                        <xsl:choose>
                                <xsl:when test="error">ErrorDetail</xsl:when>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to