Francois Gouget : winetest/build-patterns: Add a testtext CSS class.

Alexandre Julliard julliard at winehq.org
Fri May 14 15:33:49 CDT 2021


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri May 14 11:39:40 2021 +0200

winetest/build-patterns: Add a testtext CSS class.

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>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 c9fcb66..06d527f 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 4c91972..f789808 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;




More information about the wine-cvs mailing list