[tools] winetest/build-patterns: Add a testdesc CSS class.

Francois Gouget fgouget at codeweavers.com
Fri May 14 04:39:40 CDT 2021


It is needed to maintain a 4 pixel space between the description and 
the englobing testfile box.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 winetest/build-patterns | 2 +-
 winetest/report.css     | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/winetest/build-patterns b/winetest/build-patterns
index c9fcb6638..06d527f50 100755
--- a/winetest/build-patterns
+++ b/winetest/build-patterns
@@ -1074,7 +1074,7 @@ sub write_pattern($$$)
 
     compute_set_colors($test->{colors});
 
-    print $html $test->{desc} if (defined $test->{desc});
+    print $html "<div class='testtext'>$test->{desc}</div>\n" if (defined $test->{desc});
 
     print $html "<div class='test'>\n";
     write_newmodes_line($html, $test) if (%{$test->{newmodes}});
diff --git a/winetest/report.css b/winetest/report.css
index 4c9197250..f78980830 100644
--- a/winetest/report.css
+++ b/winetest/report.css
@@ -28,6 +28,12 @@ div.output, div.test {
     margin: 0;
 }
 
+div.testtext {
+    text-align: left;
+    padding: 0 0 0 4px;
+    margin: 0;
+}
+
 div.updownbar {
     padding: 4px;
     margin-bottom: 5px;
-- 
2.20.1



More information about the wine-devel mailing list