mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Add ref test for tab background highlighting
Generated with echo -e "\x1b[48;5;31m1\t2\n\n3\x1b[0;m"
This commit is contained in:
parent
96a1503040
commit
53507ce7d0
4 changed files with 17 additions and 12 deletions
22
tests/ref.rs
22
tests/ref.rs
|
@ -12,10 +12,7 @@ use alacritty::term::SizeInfo;
|
||||||
use alacritty::ansi;
|
use alacritty::ansi;
|
||||||
|
|
||||||
macro_rules! ref_tests {
|
macro_rules! ref_tests {
|
||||||
($($name:ident,)*) => {
|
($($name:ident)*) => {
|
||||||
ref_tests!($($name),*);
|
|
||||||
};
|
|
||||||
($($name:ident),*) => {
|
|
||||||
$(
|
$(
|
||||||
#[test]
|
#[test]
|
||||||
fn $name() {
|
fn $name() {
|
||||||
|
@ -28,14 +25,15 @@ macro_rules! ref_tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
ref_tests! {
|
ref_tests! {
|
||||||
fish_cc,
|
fish_cc
|
||||||
indexed_256_colors,
|
indexed_256_colors
|
||||||
ll,
|
ll
|
||||||
tmux_git_log,
|
tab_bg_highlight
|
||||||
tmux_htop,
|
tmux_git_log
|
||||||
vim_large_window_scroll,
|
tmux_htop
|
||||||
vim_simple_edit,
|
vim_large_window_scroll
|
||||||
zsh_tab_completion,
|
vim_simple_edit
|
||||||
|
zsh_tab_completion
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read_u8<P>(path: P) -> Vec<u8>
|
fn read_u8<P>(path: P) -> Vec<u8>
|
||||||
|
|
5
tests/ref/tab_bg_highlight/alacritty.recording
Normal file
5
tests/ref/tab_bg_highlight/alacritty.recording
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[1m[7m%[27m[1m[0m
]2;jwilm@jwilm-desk: ~/code/alacritty]1;..ode/alacritty
[0m[27m[24m[Jjwilm@jwilm-desk [01;32m➜ [01;32m [36m~/code/alacritty [00m [K[?1h=[?2004h[7m[35mecho[39m[7m -e [7m[33m"\x1b[48;5;31m1\t2\n\n3\x1b[0;m"[27m[39m[40D[27m[35me[27m[35mc[27m[35mh[27m[35mo[39m[27m [27m-[27me[27m [27m[33m"[27m[33m\[27m[33mx[27m[33m1[27m[33mb[27m[33m[[27m[33m4[27m[33m8[27m[33m;[27m[33m5[27m[33m;[27m[33m3[27m[33m1[27m[33mm[27m[33m1[27m[33m\[27m[33mt[27m[33m2[27m[33m\[27m[33mn[27m[33m\[27m[33mn[27m[33m3[27m[33m\[27m[33mx[27m[33m1[27m[33mb[27m[33m[[27m[33m0[27m[33m;[27m[33mm[27m[33m"[39m[?1l>[?2004l
|
||||||
|
]2;echo -e "\x1b[48;5;31m1\t2\n\n3\x1b[0;m"]1;echo[48;5;31m1 2
|
||||||
|
|
||||||
|
3[0;m
|
||||||
|
[1m[7m%[27m[1m[0m
]2;jwilm@jwilm-desk: ~/code/alacritty]1;..ode/alacritty
[0m[27m[24m[Jjwilm@jwilm-desk [01;32m➜ [01;32m [36m~/code/alacritty [00m [K[?1h=[?2004h
|
1
tests/ref/tab_bg_highlight/grid.json
Normal file
1
tests/ref/tab_bg_highlight/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
tests/ref/tab_bg_highlight/size.json
Normal file
1
tests/ref/tab_bg_highlight/size.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"width":644.0,"height":412.0,"cell_width":8.0,"cell_height":17.0}
|
Loading…
Reference in a new issue