mirror of
https://github.com/alacritty/alacritty.git
synced 2025-02-10 15:46:10 -05:00
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:
parent
679e67d045
commit
0ac3481f83
5 changed files with 7 additions and 0 deletions
|
@ -53,6 +53,7 @@ ref_tests! {
|
|||
row_reset
|
||||
zerowidth
|
||||
selective_erasure
|
||||
colored_reset
|
||||
}
|
||||
|
||||
fn read_u8<P>(path: P) -> Vec<u8>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[undeadleech@archhq colored_reset]$ printf "\e[41m"
|
||||
[41m[undeadleech@archhq colored_reset]$ [H[2J[undeadleech@archhq colored_reset]$ printf "\e[0m"
|
||||
[0m[undeadleech@archhq colored_reset]$ ls -[K
|
1
alacritty_terminal/tests/ref/colored_reset/config.json
Normal file
1
alacritty_terminal/tests/ref/colored_reset/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
1
alacritty_terminal/tests/ref/colored_reset/grid.json
Normal file
1
alacritty_terminal/tests/ref/colored_reset/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
alacritty_terminal/tests/ref/colored_reset/size.json
Normal file
1
alacritty_terminal/tests/ref/colored_reset/size.json
Normal 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}
|
Loading…
Add table
Reference in a new issue