0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00
nodejs/test/pseudo-tty
Ruben Bridgewater 0518b9edf3
assert: multiple improvements
1) Switched + / - and red / green in diffs. It seems like that style
   is more natural to most people.

2) Short primitives do not use the diff anymore. Especially short
   numbers can be read well like 1 !== 2. Cases that can not be
   displayed like that (e.g., -0 and +0) use the regular diff output.

3) Improved error descriptions. It was not always clear what the
   messages stood for. That should now be resolved.

4) Added a position indicator for single lines in case a tty is used
   and the line is shorter than the visual columns.

5) Color detection is now done by checking stderr instead of stdout.

PR-URL: https://github.com/nodejs/node/pull/21628
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
2018-08-04 10:04:32 +02:00
..
console_colors.js
console_colors.out
no_dropped_stdio.js
no_dropped_stdio.out
no_interleaved_stdio.js
no_interleaved_stdio.out
pseudo-tty.status
ref_keeps_node_running.js
ref_keeps_node_running.out
stdin-setrawmode.js
stdin-setrawmode.out
test-assert-colors.js assert: multiple improvements 2018-08-04 10:04:32 +02:00
test-assert-colors.out
test-async-wrap-getasyncid-tty.js
test-async-wrap-getasyncid-tty.out
test-handle-wrap-isrefed-tty.js
test-handle-wrap-isrefed-tty.out
test-set-raw-mode-reset-process-exit.js test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset-process-exit.out test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset-signal.js test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset-signal.out test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset.js test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset.out test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-stderr-stdout-handle-sigwinch.js
test-stderr-stdout-handle-sigwinch.out
test-tty-get-color-depth.js
test-tty-get-color-depth.out
test-tty-isatty.js
test-tty-isatty.out
test-tty-stdin-end.js src: remove kFlagNoShutdown flag 2018-05-04 00:57:38 +02:00
test-tty-stdin-end.out src: remove kFlagNoShutdown flag 2018-05-04 00:57:38 +02:00
test-tty-stdout-end.js
test-tty-stdout-end.out
test-tty-stdout-resize.js
test-tty-stdout-resize.out
test-tty-stream-constructors.js
test-tty-stream-constructors.out
test-tty-window-size.js
test-tty-window-size.out
test-tty-wrap.js
test-tty-wrap.out
testcfg.py tools,test: remove unused config hooks 2018-07-31 10:26:04 -04:00