1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00
alacritty/tests/ref
Christian Duerr ac93f6d031 Truncate invisible lines before storing ref-tests
Because there is no good way to store invisible lines in a backwards-
and forwards-compatible way, they buffer now gets truncated before
dumping the state of a grid when creating a ref-test.

This involved a few workaround of which a few required adding additional
methods which are only used in ref-tests, these should be minimal
though.

Since this required the creation of a truncation method anyways, some
logic has been added which automatically truncates the invisible buffer
when there are more than X (set to 100) invisible lines. This should not
impact performance because it rarely occurs, but it could save a bit of
memory when the history size is shrunk during runtime (see #1293).

This also adds an optional `config.json` file to the ref-test output
where it is possible to manually specify variables which should override
config defaults, this has been used only for history_size so far.

Creating a new ref-test does also still work, so there was no regression
here, if history size is altered, the config.json just has to be created
manually with the content `{"history_size":HIST_SIZE}`, where
`HIST_SIZE` is the desired history size.
2018-06-02 09:56:50 -07:00
..
csi_rep Make tests compile again 2018-06-02 09:56:50 -07:00
fish_cc Make tests compile again 2018-06-02 09:56:50 -07:00
grid_reset Truncate invisible lines before storing ref-tests 2018-06-02 09:56:50 -07:00
history Truncate invisible lines before storing ref-tests 2018-06-02 09:56:50 -07:00
indexed_256_colors Make tests compile again 2018-06-02 09:56:50 -07:00
issue_855 Make tests compile again 2018-06-02 09:56:50 -07:00
ll Make tests compile again 2018-06-02 09:56:50 -07:00
newline_with_cursor_beyond_scroll_region Make tests compile again 2018-06-02 09:56:50 -07:00
tab_rendering Make tests compile again 2018-06-02 09:56:50 -07:00
tmux_git_log Make tests compile again 2018-06-02 09:56:50 -07:00
tmux_htop Make tests compile again 2018-06-02 09:56:50 -07:00
vim_24bitcolors_bce Make tests compile again 2018-06-02 09:56:50 -07:00
vim_large_window_scroll Make tests compile again 2018-06-02 09:56:50 -07:00
vim_simple_edit Make tests compile again 2018-06-02 09:56:50 -07:00
vttest_cursor_movement_1 Make tests compile again 2018-06-02 09:56:50 -07:00
vttest_insert Make tests compile again 2018-06-02 09:56:50 -07:00
vttest_origin_mode_1 Make tests compile again 2018-06-02 09:56:50 -07:00
vttest_origin_mode_2 Make tests compile again 2018-06-02 09:56:50 -07:00
vttest_scroll Make tests compile again 2018-06-02 09:56:50 -07:00
vttest_tab_clear_set Make tests compile again 2018-06-02 09:56:50 -07:00
zsh_tab_completion Make tests compile again 2018-06-02 09:56:50 -07:00