Alexandre Julliard : winetest: Display summary headers as mixed if there were some successful runs.
Alexandre Julliard
julliard at winehq.org
Thu Mar 12 10:26:12 CDT 2009
Module: tools
Branch: master
Commit: bc29aac10d8aa078c6501ad42d0563445649b9ff
URL: http://source.winehq.org/git/tools.git/?a=commit;h=bc29aac10d8aa078c6501ad42d0563445649b9ff
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Mar 12 16:20:15 2009 +0100
winetest: Display summary headers as mixed if there were some successful runs.
---
winetest/gather | 5 +++--
winetest/summary.css | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/winetest/gather b/winetest/gather
index d3bb878..ebc50f1 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -359,7 +359,8 @@ $msg
</th>
EOF
- my $class = $report->{errors} ? "fail" :
+ my $class = $report->{errors} ?
+ ($report->{successes} ? "mixed" : "fail") . ($report->{todos} ? " also-todo" : "") :
$report->{todos} ? "todo" :
"pass";
my $count=!$report->{todos} ? $report->{errors} :
@@ -373,7 +374,7 @@ EOF
my $title = "$unit_count unit tests, $report->{errors} have errors";
$title .= ", $report->{todos} have todos" if $report->{todos};
- $stats .= " <th class=\"$class\"><a title=\"$title\">$count<br>$prcnt\%</a></th>\n";
+ $stats .= " <th class=\"result $class\"><a title=\"$title\">$count<br>$prcnt\%</a></th>\n";
}
chop $title;
chop $stats;
diff --git a/winetest/summary.css b/winetest/summary.css
index 1a0711e..9dd7219 100644
--- a/winetest/summary.css
+++ b/winetest/summary.css
@@ -105,7 +105,8 @@ table.report {
table.report th {
line-height: 0.9;
vertical-align: text-top;
- border-width: thin;
+ border-top-width: thin;
+ border-bottom-width: thin;
}
table.report th.test {
text-align: center;
More information about the wine-cvs
mailing list