1
0
Fork 0
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:
Joe Wilm 2017-02-27 08:03:08 -08:00 committed by Joe Wilm
parent 96a1503040
commit 53507ce7d0
4 changed files with 17 additions and 12 deletions

View file

@ -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>

View file

@ -0,0 +1,5 @@
% ]2;jwilm@jwilm-desk: ~/code/alacritty]1;..ode/alacritty jwilm@jwilm-desk ➜  ~/code/alacritty  [?1h=[?2004hecho -e "\x1b[48;5;31m1\t2\n\n3\x1b[0;m"echo -e "\x1b[48;5;31m1\t2\n\n3\x1b[0;m"[?1l>[?2004l
]2;echo -e "\x1b[48;5;31m1\t2\n\n3\x1b[0;m"]1;echo1 2
3
% ]2;jwilm@jwilm-desk: ~/code/alacritty]1;..ode/alacritty jwilm@jwilm-desk ➜  ~/code/alacritty  [?1h=[?2004h

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"width":644.0,"height":412.0,"cell_width":8.0,"cell_height":17.0}