Module: tools Branch: master Commit: 326ed936c6e8ec9a3233de0bc24cefc8e6419612 URL: https://source.winehq.org/git/tools.git/?a=commit;h=326ed936c6e8ec9a3233de0b...
Author: Francois Gouget fgouget@codeweavers.com Date: Tue May 3 19:41:34 2022 +0200
testbot/build-patterns: Colorize expanded pattern lines.
This makes it easier to identify which pattern lines were previously hidden when there are a lot of them.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
winetest/patterns.js | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/winetest/patterns.js b/winetest/patterns.js index 042620b..65e9cb8 100644 --- a/winetest/patterns.js +++ b/winetest/patterns.js @@ -34,6 +34,11 @@ function expandTest(test) { test.patlines.forEach(patline => { patline.dom.style.display = patline.display; + if (!patline.cb.checked) + { + const label = patline.dom.querySelector('.label'); + label.style.color = 'darkblue'; + } }); test.domexpand.innerHTML = '[-]'; test.domexpand.title = "Apply filters"; @@ -106,6 +111,8 @@ function refreshPage(changes, rerun_checked) { cb.patlines.forEach(patline => { patline.dom.style.display = patline.display; + const label = patline.dom.querySelector('.label'); + label.style.removeProperty('color'); const test = patline.test; test.linecount++; if (test.linecount == 1 && test.id != "summary")