mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Update outdated reftests
This commit is contained in:
parent
dc063180f3
commit
5aaa350e1a
52 changed files with 51 additions and 38 deletions
|
@ -122,18 +122,15 @@ pub struct Grid<T> {
|
|||
/// If the displayed region isn't at the bottom of the screen, it stays
|
||||
/// stationary while more text is emitted. The scrolling implementation
|
||||
/// updates this offset accordingly.
|
||||
#[serde(default)]
|
||||
display_offset: usize,
|
||||
|
||||
/// An limit on how far back it's possible to scroll
|
||||
#[serde(default)]
|
||||
scroll_limit: usize,
|
||||
|
||||
/// Selected region
|
||||
#[serde(skip)]
|
||||
pub selection: Option<Selection>,
|
||||
|
||||
#[serde(default)]
|
||||
max_scroll_limit: usize,
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,6 @@ pub struct Storage<T> {
|
|||
/// having to truncate the raw `inner` buffer.
|
||||
/// As long as `len` is bigger than `inner`, it is also possible to grow the scrollback buffer
|
||||
/// without any additional insertions.
|
||||
#[serde(default)]
|
||||
len: usize,
|
||||
}
|
||||
|
||||
|
|
|
@ -99,11 +99,11 @@ fn ref_test(dir: &Path) {
|
|||
let recording = read_u8(dir.join("alacritty.recording"));
|
||||
let serialized_size = read_string(dir.join("size.json")).unwrap();
|
||||
let serialized_grid = read_string(dir.join("grid.json")).unwrap();
|
||||
let serialized_cfg = read_string(dir.join("config.json")).unwrap_or_default();
|
||||
let serialized_cfg = read_string(dir.join("config.json")).unwrap();
|
||||
|
||||
let size: SizeInfo = json::from_str(&serialized_size).unwrap();
|
||||
let grid: Grid<Cell> = json::from_str(&serialized_grid).unwrap();
|
||||
let ref_config: RefConfig = json::from_str(&serialized_cfg).unwrap_or_default();
|
||||
let ref_config: RefConfig = json::from_str(&serialized_cfg).unwrap();
|
||||
|
||||
let mut config = MockConfig::default();
|
||||
config.scrolling.set_history(ref_config.history_size);
|
||||
|
|
1
alacritty_terminal/tests/ref/csi_rep/config.json
Normal file
1
alacritty_terminal/tests/ref/csi_rep/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":522.0,"height":360.0,"cell_width":7.0,"cell_height":16.0,"padding_x":3.0,"padding_y":3.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
1
alacritty_terminal/tests/ref/fish_cc/config.json
Normal file
1
alacritty_terminal/tests/ref/fish_cc/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":804.0,"height":604.0,"cell_width":10.0,"cell_height":25.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":2532.0,"height":1380.0,"cell_width":9.0,"cell_height":19.0,"padding_x":3.0,"padding_y":3.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":939.0,"height":1020.0,"cell_width":8.0,"cell_height":18.0,"padding_x":2.0,"padding_y":2.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":1124.0,"height":628.0,"cell_width":14.0,"cell_height":26.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
1
alacritty_terminal/tests/ref/issue_855/config.json
Normal file
1
alacritty_terminal/tests/ref/issue_855/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":670.0,"height":382.0,"cell_width":9.0,"cell_height":17.0,"padding_x":3.0,"padding_y":3.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
1
alacritty_terminal/tests/ref/ll/config.json
Normal file
1
alacritty_terminal/tests/ref/ll/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":1124.0,"height":628.0,"cell_width":14.0,"cell_height":26.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":587.0,"height":360.0,"cell_width":7.0,"cell_height":16.0,"padding_x":3.0,"padding_y":3.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
1
alacritty_terminal/tests/ref/tab_rendering/config.json
Normal file
1
alacritty_terminal/tests/ref/tab_rendering/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
1
alacritty_terminal/tests/ref/tmux_git_log/config.json
Normal file
1
alacritty_terminal/tests/ref/tmux_git_log/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":1124.0,"height":628.0,"cell_width":14.0,"cell_height":26.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
1
alacritty_terminal/tests/ref/tmux_htop/config.json
Normal file
1
alacritty_terminal/tests/ref/tmux_htop/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":1124.0,"height":628.0,"cell_width":14.0,"cell_height":26.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
1
alacritty_terminal/tests/ref/vim_simple_edit/config.json
Normal file
1
alacritty_terminal/tests/ref/vim_simple_edit/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":644.0,"height":412.0,"cell_width":8.0,"cell_height":17.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
1
alacritty_terminal/tests/ref/vttest_insert/config.json
Normal file
1
alacritty_terminal/tests/ref/vttest_insert/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":1124.0,"height":676.0,"cell_width":14.0,"cell_height":28.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":644.0,"height":412.0,"cell_width":8.0,"cell_height":17.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":644.0,"height":412.0,"cell_width":8.0,"cell_height":17.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
1
alacritty_terminal/tests/ref/vttest_scroll/config.json
Normal file
1
alacritty_terminal/tests/ref/vttest_scroll/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":644.0,"height":412.0,"cell_width":8.0,"cell_height":17.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"width":1204.0,"height":676.0,"cell_width":15.0,"cell_height":28.0,"padding_x":0.0,"padding_y":0.0}
|
||||
{"width":1900.0,"height":1038.0,"cell_width":18.0,"cell_height":35.0,"padding_x":0.0,"padding_y":0.0,"dpr":2.0}
|
Loading…
Reference in a new issue