mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38: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:
parent
778265ae9d
commit
4ff30a7302
3 changed files with 8 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue