Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/atf/dist/atf-report Pull up upstream revision d...



details:   https://anonhg.NetBSD.org/src/rev/444780c93a91
branches:  trunk
changeset: 772997:444780c93a91
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Mon Jan 23 23:03:39 2012 +0000

description:
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.

diffstat:

 external/bsd/atf/dist/atf-report/tests-results.css |  12 ++++++++++++
 external/bsd/atf/dist/atf-report/tests-results.xsl |  10 +++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r 93ab31dcac2b -r 444780c93a91 external/bsd/atf/dist/atf-report/tests-results.css
--- a/external/bsd/atf/dist/atf-report/tests-results.css        Mon Jan 23 21:51:46 2012 +0000
+++ b/external/bsd/atf/dist/atf-report/tests-results.css        Mon Jan 23 23:03:39 2012 +0000
@@ -148,10 +148,22 @@
 }
 
 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;
diff -r 93ab31dcac2b -r 444780c93a91 external/bsd/atf/dist/atf-report/tests-results.xsl
--- a/external/bsd/atf/dist/atf-report/tests-results.xsl        Mon Jan 23 21:51:46 2012 +0000
+++ b/external/bsd/atf/dist/atf-report/tests-results.xsl        Mon Jan 23 23:03:39 2012 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index