Module Name:    src
Committed By:   jmmv
Date:           Mon Jan 23 23:03:39 UTC 2012

Modified Files:
        src/external/bsd/atf/dist/atf-report: tests-results.css
            tests-results.xsl

Log Message:
Pull up upstream revision db8568696ad5a100ab3f118ac1cde53ee61ccbc3:

Fix some XSLT/CSS bugs that leaked some internal tags into the HTML file.
This, together with some CSS inconsistency, supposedly prevented the
timestamp column from being right-aligned... although I have not been able
to reproduce it with neither Chrome nor Firefox.  That said, the changes
in here should fix this.

While doing this, also change the background color of the timestamp column
for test programs to improve the divider bar between test programs.

Based on patches and ideas from pgoyette@.  Should fix PR bin/45859.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    src/external/bsd/atf/dist/atf-report/tests-results.css
cvs rdiff -u -r1.6 -r1.7 \
    src/external/bsd/atf/dist/atf-report/tests-results.xsl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/atf/dist/atf-report/tests-results.css
diff -u src/external/bsd/atf/dist/atf-report/tests-results.css:1.4 src/external/bsd/atf/dist/atf-report/tests-results.css:1.5
--- src/external/bsd/atf/dist/atf-report/tests-results.css:1.4	Mon Jan 16 22:41:30 2012
+++ src/external/bsd/atf/dist/atf-report/tests-results.css	Mon Jan 23 23:03:39 2012
@@ -148,10 +148,22 @@ table.tcs-summary th {
 }
 
 table.tcs-summary td.numeric {
+    width: 1pt;
+}
+
+table.tcs-summary td.numeric p {
     text-align: right;
+}
+
+table.tcs-summary td.tp-numeric {
+    background: #dddddd;
     width: 1pt;
 }
 
+table.tcs-summary td.tp-numeric p {
+    text-align: right;
+}
+
 table.tcs-summary td.tp-id {
     background: #dddddd;
     font-weight: bold;

Index: src/external/bsd/atf/dist/atf-report/tests-results.xsl
diff -u src/external/bsd/atf/dist/atf-report/tests-results.xsl:1.6 src/external/bsd/atf/dist/atf-report/tests-results.xsl:1.7
--- src/external/bsd/atf/dist/atf-report/tests-results.xsl:1.6	Mon Jan 16 22:41:30 2012
+++ src/external/bsd/atf/dist/atf-report/tests-results.xsl	Mon Jan 23 23:03:39 2012
@@ -382,8 +382,8 @@
         <td class="tp-id" colspan="3">
           <p><xsl:value-of select="@id" /></p>
         </td>
-        <td class="numeric">
-          <xsl:apply-templates select="tp-time" />s
+        <td class="tp-numeric">
+          <p><xsl:value-of select="tp-time" />s</p>
         </td>
       </tr>
       <xsl:if test="$which != 'bogus'">
@@ -437,9 +437,9 @@
                                      expected_failure|expected_timeout|
                                      expected_signal|failed|passed|
                                      skipped" mode="tc" />
-	<td class="numeric">
-	  <xsl:apply-templates select="tc-time" />s
-	</td>
+        <td class="numeric">
+          <p><xsl:value-of select="tc-time" />s</p>
+        </td>
       </tr>
     </xsl:if>
   </xsl:template>

Reply via email to