Add ref test for verifying colored clear behavior

This covers the behavior of clearing the screen and a row with colored
cells.

This covers a bug discovered in #2329 which was not detected in any
existing ref tests.
This commit is contained in:
Christian Duerr 2019-11-10 20:26:39 +01:00 committed by GitHub
parent 679e67d045
commit 0ac3481f83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 0 deletions

View File

@ -53,6 +53,7 @@ ref_tests! {
row_reset
zerowidth
selective_erasure
colored_reset
}
fn read_u8<P>(path: P) -> Vec<u8>

View File

@ -0,0 +1,3 @@
[undeadleech@archhq colored_reset]$ printf "\e[41m"
[undeadleech@archhq colored_reset]$ [undeadleech@archhq colored_reset]$ printf "\e[0m"
[undeadleech@archhq colored_reset]$ ls -

View File

@ -0,0 +1 @@
{"history_size":0}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"width":939.0,"height":1020.0,"cell_width":8.0,"cell_height":16.0,"padding_x":5.0,"padding_y":6.0,"dpr":1.0}