mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibTest: Use the 16 standard ANSI colors in status output
Neither Azure Pipelines' log viewer, nor macOS Terminal.app support full 24-bit RGB color codes, causing the text output to be displayed incorrectly. Fix this by using one of the 16 standard colors. Most terminal emulators use a relatively dark shade for red by default, as seen in the "ANSI escape code" Wikipedia article, so change the foreground color to white to preserve contrast.
This commit is contained in:
committed by
Tim Flynn
parent
778265ae9d
commit
4ff30a7302
@@ -512,7 +512,7 @@ inline JSFileResult TestRunner::run_file_test(DeprecatedString const& test_path)
|
||||
inline void TestRunner::print_file_result(JSFileResult const& file_result) const
|
||||
{
|
||||
if (file_result.most_severe_test_result == Test::Result::Fail || file_result.error.has_value()) {
|
||||
print_modifiers({ BG_RED, FG_BLACK, FG_BOLD });
|
||||
print_modifiers({ BG_RED, FG_BOLD });
|
||||
out(" FAIL ");
|
||||
print_modifiers({ CLEAR });
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user