Francois Gouget : winetest/build-patterns: Use CSS to highlight lines with new failure modes.

Alexandre Julliard julliard at winehq.org
Tue May 3 15:18:32 CDT 2022


Module: tools
Branch: master
Commit: 5502d2ae65055fdeb6a447ed42e271e9e563f18e
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=5502d2ae65055fdeb6a447ed42e271e9e563f18e

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue May  3 19:41:26 2022 +0200

winetest/build-patterns: Use CSS to highlight lines with new failure modes.

This also makes it possible to programmatically manipulate the pattern
line labels.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 winetest/build-patterns | 5 ++---
 winetest/report.css     | 2 ++
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/winetest/build-patterns b/winetest/build-patterns
index 49b08e3..aa6a6e4 100755
--- a/winetest/build-patterns
+++ b/winetest/build-patterns
@@ -1113,9 +1113,8 @@ sub write_pattern_line($$$)
                      date_range($range_start, $range_end),
                      $range_title, $range_symbol x $range_count;
     }
-    my $label = $reportdir;
-    $label = "<b>$label</b>" if ($has_newmode);
-    print $html "</div> $label\n</div>";
+    my $newmode = $has_newmode ? " newmode" : "";
+    print $html "</div> <span class='label$newmode'>$reportdir</span>\n</div>";
 }
 
 sub index2symbol($)
diff --git a/winetest/report.css b/winetest/report.css
index be49a05..25f156d 100644
--- a/winetest/report.css
+++ b/winetest/report.css
@@ -91,6 +91,8 @@ div.pattern :link    { color: black; text-decoration: none; }
 div.pattern :visited { color: black; text-decoration: none; }
 div.pattern :hover   { color: black; text-decoration: underline; }
 
+.newmode { font-weight: bold; }
+
 .patA { /* no such test in this build  */
     background-color: lightgrey;
 }




More information about the wine-cvs mailing list