Module: tools
Branch: master
Commit: d68796a68adfc4b980c51aacc836b53947f7d3e4
URL: https://source.winehq.org/git/tools.git/?a=commit;h=d68796a68adfc4b980c51aa…
Author: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Date: Mon May 3 23:31:41 2021 +1000
winetest/gather: Dynamically set the scroll-margin-top property on the platform-specific index pages.
The sticky <th> header row often has a different height depending on the
platform page being accessed. This prevents us from hard-coding the
scroll-margin-top property using CSS alone. Dynamically setting this value
ensures each bookmark is shown as expected.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/gather | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/winetest/gather b/winetest/gather
index 4698ac3..b4b9464 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -911,6 +911,12 @@ EOF
To run the tests on your Windows machine, download the <a href="/builds/winetest-$short_build.exe">32-bit winetest</a>.
If you have a 64-bit Windows OS, you can also run the <a href="/builds/winetest64-$short_build.exe">64-bit winetest</a>.
</div>
+<script>
+ var sticky_height = document.querySelector('.sticky').offsetHeight + 1;
+ var style = document.createElement('style');
+ style.innerHTML = 'div.group table.report td.test a { scroll-margin-top: ' + sticky_height + 'px; }';
+ document.head.appendChild(style);
+</script>
</body>
</html>
EOF
Module: tools
Branch: master
Commit: ad674e6601d70028fdc7e901e8c81825eb185b4c
URL: https://source.winehq.org/git/tools.git/?a=commit;h=ad674e6601d70028fdc7e90…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Tue May 4 17:25:49 2021 +0200
winetest/build-patterns: Reset the palette for each page.
Otherwise pages with fewer reports use a palette designed for the full
range of failure counts of the main page, losing contrast for no reason.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/build-patterns | 1 +
1 file changed, 1 insertion(+)
diff --git a/winetest/build-patterns b/winetest/build-patterns
index e6640d6..130294e 100755
--- a/winetest/build-patterns
+++ b/winetest/build-patterns
@@ -897,6 +897,7 @@ EOF
foreach my $testname (sort keys %tests)
{
my $test = $tests{$testname};
+ $test->{colors} = {};
my $first = @sortedbuilds;
my $last = -1;
Module: tools
Branch: master
Commit: f5079e629f772c3bf44c955d9f3ebbc9b689a8cd
URL: https://source.winehq.org/git/tools.git/?a=commit;h=f5079e629f772c3bf44c955…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Tue May 4 17:23:48 2021 +0200
winetest/build-patterns: Tweak the failure color gradients.
Start from a 'darker cyan' when we need a lot of colors. Stick to
lighter shades when few colors are needed for better color consistency
and aesthetics.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/build-patterns | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/winetest/build-patterns b/winetest/build-patterns
index ea9cd4c..fe285cc 100755
--- a/winetest/build-patterns
+++ b/winetest/build-patterns
@@ -621,11 +621,6 @@ sub blend($$$)
return $r;
}
-my @keycolors = ([0, 255, 255], # cyan
- [0, 255, 0], # green
- [255, 255, 0], # yellow
- [255, 0, 0], # red
-);
# Use colors to differentiate the set values. Each unique value is assigned
# a color (in HTML format) picked along a series of gradients passing by the
@@ -633,6 +628,12 @@ my @keycolors = ([0, 255, 255], # cyan
sub compute_set_colors($)
{
my ($set) = @_;
+
+ my @keycolors = ([0, 255, 255], # cyan
+ [0, 255, 0], # green
+ [255, 255, 0], # yellow
+ [255, 0, 0]); # red
+
my @values = sort { $a <=> $b } keys %$set;
my $count = @values;
if ($count == 1)
@@ -641,6 +642,10 @@ sub compute_set_colors($)
}
else
{
+ # Start from a 'darker cyan' for increased contrast
+ # when many colors are needed.
+ $keycolors[0] = [0, 179, 179] if ($count > 10);
+
my $k = 0;
my ($start, $end) = (-1, 0);
for (0..$count-1)