sapling/eden/scm/tests/test-color-escapes.t
Muir Manders 1dcb7966fc tests: turn on eagerepo for a bunch of tests
Summary: These are the tests that passed after adding "$ eagerepo". I attempted to turn on eagerepo for all tests that didn't contain "$ eagerepo" or "configure modern".

Reviewed By: quark-zju

Differential Revision: D44445379

fbshipit-source-id: b283be6d5249f74e11a3205622961e457587e93b
2023-04-04 08:42:03 -07:00

51 lines
1.8 KiB
Perl
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#chg-compatible
#debugruntest-compatible
$ eagerepo
$ setconfig ui.color=always color.mode=ansi
$ setconfig color.color.none=0
$ setconfig alias.testcolor="debugtemplate '{label(\"test.test\", \"output\n\")}'"
$ hg testcolor --config color.test.test=blue
\x1b[34moutput\x1b[39m (esc)
$ hg testcolor --config color.test.test="blue bold"
\x1b[0m\x1b[1m\x1b[34moutput\x1b[0m (esc)
$ hg testcolor --config color.test.test="brightblue"
\x1b[94moutput\x1b[39m (esc)
$ hg testcolor --config color.test.test="blue+bold"
\x1b[0m\x1b[1m\x1b[34moutput\x1b[0m (esc)
$ hg testcolor --config color.test.test="brightblue:blue+bold"
\x1b[94moutput\x1b[39m (esc)
$ HGCOLORS=8 hg testcolor --config color.test.test="brightblue:blue+bold"
\x1b[0m\x1b[1m\x1b[34moutput\x1b[0m (esc)
$ hg testcolor --config color.test.test="brightblue:blue+bold underline"
\x1b[0m\x1b[4m\x1b[94moutput\x1b[0m (esc)
$ HGCOLORS=8 hg testcolor --config color.test.test="brightblue:blue+bold underline"
\x1b[0m\x1b[1m\x1b[4m\x1b[34moutput\x1b[0m (esc)
$ HGCOLORS=16777216 hg testcolor --config color.test.test="#359:color68+italic:brightblue:blue+bold underline"
\x1b[0m\x1b[4m\x1b[38:2::51:85:153moutput\x1b[0m (esc)
$ HGCOLORS=256 hg testcolor --config color.test.test="#359:color68+italic:brightblue:blue+bold underline"
\x1b[0m\x1b[4m\x1b[3m\x1b[38:5:68moutput\x1b[0m (esc)
$ HGCOLORS=16 hg testcolor --config color.test.test="#359:color68+italic:brightblue:blue+bold underline"
\x1b[0m\x1b[4m\x1b[94moutput\x1b[0m (esc)
$ HGCOLORS=8 hg testcolor --config color.test.test="#359:color68+italic:brightblue:blue+bold underline"
\x1b[0m\x1b[1m\x1b[4m\x1b[34moutput\x1b[0m (esc)
Don't crash on invalid utf-8:
$ hg testcolor --config color.test.test=blue --config alias.testcolor="debugtemplate '{label(\"test.test\", \"\x96\x96\n\")}'"
\udc96\udc96