geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r505571 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report: model/ resources/ resources/boilerplate/
Date Fri, 09 Feb 2007 23:58:45 GMT
Author: jdillon
Date: Fri Feb  9 15:58:44 2007
New Revision: 505571

URL: http://svn.apache.org/viewvc?view=rev&rev=505571
Log:
When listing elements, if one is failed, then alter the color of the row

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy?view=diff&rev=505571&r1=505570&r2=505571
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy
Fri Feb  9 15:58:44 2007
@@ -79,6 +79,10 @@
         return name.replace('.', '/').replace('#', '_') + '.html'
     }
     
+    boolean getPassed() {
+        return status.passed
+    }
+    
     String getStatusIcon() {
         if (status.passed) {
             return 'icon_success_sml.gif'

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css?view=diff&rev=505571&r1=505570&r2=505571
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css
Fri Feb  9 15:58:44 2007
@@ -120,11 +120,19 @@
 /* Tables */
 
 tr.a {
-    background-color: #ffffff;
+    background-color: #ffffff; /* white */
 }
 
 tr.b {
-    background-color: #f5f5f5;
+    background-color: #f5f5f5; /* light grey */
+}
+
+tr.a_failed {
+    background-color: #FFE7E7; /* light red */
+}
+
+tr.b_failed {
+    background-color: #FFCFCF; /* darker light red */
 }
 
 /* Test Status */

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm?view=diff&rev=505571&r1=505570&r2=505571
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm
Fri Feb  9 15:58:44 2007
@@ -67,7 +67,12 @@
         <tbody>
             #resetRowStyle()
             #foreach ($test in $model.tests)
-                <tr class="#toggleRowStyle()">
+                #if ($test.passed)
+                    #set ($style = '')
+                #else
+                    #set ($style = '_failed')
+                #end
+                <tr class="#toggleRowStyle2($style)">
                     <td align="center" width="20">#icon($test.statusIcon)</td>
                     <td align="left"><a href="$test.href">$test.testName</a></td>
                     <td align="center">#testStatus($test)</a></td>

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm?view=diff&rev=505571&r1=505570&r2=505571
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm
Fri Feb  9 15:58:44 2007
@@ -67,7 +67,12 @@
         <tbody>
             #resetRowStyle()
             #foreach ($pkg in $model.packages)
-                <tr class="#toggleRowStyle()">
+                #if ($pkg.passed)
+                    #set ($style = '')
+                #else
+                    #set ($style = '_failed')
+                #end
+                <tr class="#toggleRowStyle2($style)">
                     <td align="center" width="20">#icon($pkg.statusIcon)</td>
                     <td align="left"><a href="$pkg.href">$pkg.name</a></td>
                     <td align="right">$pkg.count</td>

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm?view=diff&rev=505571&r1=505570&r2=505571
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm
Fri Feb  9 15:58:44 2007
@@ -34,7 +34,12 @@
         <tbody>
             #resetRowStyle()
             #foreach ($iter in $model.iterations)
-                <tr class="#toggleRowStyle()">
+                #if ($iter.passed)
+                    #set ($style = '')
+                #else
+                    #set ($style = '_failed')
+                #end
+                <tr class="#toggleRowStyle2($style)">
                     <td align="center" width="20">#icon($iter.statusIcon)</td>
                     <td align="left"><a href="$iter.href">$iter.name</a></td>
                     <td align="right">$iter.count</td>

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm?view=diff&rev=505571&r1=505570&r2=505571
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm
Fri Feb  9 15:58:44 2007
@@ -61,6 +61,8 @@
 
 #macro (toggleRowStyle)#if($_rowStyle == 'a')#set($_rowStyle = 'b')#else #set($_rowStyle
= 'a')#end$_rowStyle#end
 
+#macro (toggleRowStyle2 $suffix)#if($_rowStyle == "a$suffix")#set($_rowStyle = "b$suffix")#else
#set($_rowStyle = "a$suffix")#end$_rowStyle#end
+
 #macro (resetRowStyle)
     #set($_rowStyle = 'unset')
 #end

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm?view=diff&rev=505571&r1=505570&r2=505571
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm
Fri Feb  9 15:58:44 2007
@@ -34,7 +34,12 @@
         <tbody>
             #resetRowStyle()
             #foreach ($pkg in $model.packages)
-                <tr class="#toggleRowStyle()">
+                #if ($pkg.passed)
+                    #set ($style = '')
+                #else
+                    #set ($style = '_failed')
+                #end
+                <tr class="#toggleRowStyle2($style)">
                     <td align="center" width="20">#icon($pkg.statusIcon)</td>
                     <td align="left"><a href="$pkg.href">$pkg.name</a></td>
                     <td align="right">$pkg.count</td>

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm?view=diff&rev=505571&r1=505570&r2=505571
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm
Fri Feb  9 15:58:44 2007
@@ -67,7 +67,12 @@
         <tbody>
             #resetRowStyle()
             #foreach ($clazz in $model.classes)
-                <tr class="#toggleRowStyle()">
+                #if ($clazz.passed)
+                    #set ($style = '')
+                #else
+                    #set ($style = '_failed')
+                #end
+                <tr class="#toggleRowStyle2($style)">
                     <td align="center" width="20">#icon($clazz.statusIcon)</td>
                     <td align="left"><a href="$clazz.href">$clazz.name</a></td>
                     <td align="right">$clazz.count</td>
@@ -87,7 +92,12 @@
             #resetRowStyle()
             #foreach ($clazz in $model.classes)
                 #foreach ($test in $clazz.tests)
-                    <tr class="#toggleRowStyle()">
+                    #if ($test.passed)
+                        #set ($style = '')
+                    #else
+                        #set ($style = '_failed')
+                    #end
+                    <tr class="#toggleRowStyle2($style)">
                         <td align="center" width="20">#icon($test.statusIcon)</td>
                         <td align="left"><a href="$test.href">$test.name</a></td>
                         <td align="center">#testStatus($test)</a></td>



Mime
View raw message