aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-06-03 12:38:23 +0100
committerBrooks J Rady <b.j.rady@gmail.com>2021-06-03 12:38:23 +0100
commit5164bd99b7750122b36fd1fa54a90047e483067c (patch)
tree52beb8ea26c8ec6a6d46c6a9a95c9661878f6ff0 /src
parentMerge branch 'main' into resize-overhaul (diff)
downloadsl0ppij-5164bd99b7750122b36fd1fa54a90047e483067c.tar.gz
sl0ppij-5164bd99b7750122b36fd1fa54a90047e483067c.tar.xz
sl0ppij-5164bd99b7750122b36fd1fa54a90047e483067c.zip
Fixed a build warning and renamed a struct field
Diffstat (limited to 'src')
-rw-r--r--src/tests/integration/basic.rs28
-rw-r--r--src/tests/integration/close_pane.rs26
-rw-r--r--src/tests/integration/compatibility.rs42
-rw-r--r--src/tests/integration/layouts.rs2
-rw-r--r--src/tests/integration/move_focus_down.rs4
-rw-r--r--src/tests/integration/move_focus_left.rs6
-rw-r--r--src/tests/integration/move_focus_right.rs6
-rw-r--r--src/tests/integration/move_focus_up.rs4
-rw-r--r--src/tests/integration/resize_down.rs26
-rw-r--r--src/tests/integration/resize_left.rs26
-rw-r--r--src/tests/integration/resize_right.rs26
-rw-r--r--src/tests/integration/resize_up.rs26
-rw-r--r--src/tests/integration/tabs.rs16
-rw-r--r--src/tests/integration/terminal_window_resize.rs16
-rw-r--r--src/tests/integration/toggle_fullscreen.rs4
15 files changed, 129 insertions, 129 deletions
diff --git a/src/tests/integration/basic.rs b/src/tests/integration/basic.rs
index 640b1c55..155ff8b1 100644
--- a/src/tests/integration/basic.rs
+++ b/src/tests/integration/basic.rs
@@ -20,7 +20,7 @@ fn get_fake_os_input(fake_win_size: &PositionAndSize) -> FakeInputOutput {
#[test]
pub fn starts_with_one_terminal() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -48,7 +48,7 @@ pub fn starts_with_one_terminal() {
#[test]
pub fn split_terminals_vertically() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -76,7 +76,7 @@ pub fn split_terminals_vertically() {
#[test]
pub fn split_terminals_horizontally() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -105,7 +105,7 @@ pub fn split_terminals_horizontally() {
pub fn split_largest_terminal() {
// this finds the largest pane and splits along its longest edge (vertically or horizontally)
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -139,7 +139,7 @@ pub fn split_largest_terminal() {
#[test]
pub fn cannot_split_terminals_vertically_when_active_terminal_is_too_small() {
let fake_win_size = PositionAndSize {
- columns: 8,
+ cols: 8,
rows: 20,
x: 0,
y: 0,
@@ -167,7 +167,7 @@ pub fn cannot_split_terminals_vertically_when_active_terminal_is_too_small() {
#[test]
pub fn cannot_split_terminals_horizontally_when_active_terminal_is_too_small() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 4,
x: 0,
y: 0,
@@ -195,7 +195,7 @@ pub fn cannot_split_terminals_horizontally_when_active_terminal_is_too_small() {
#[test]
pub fn cannot_split_largest_terminal_when_there_is_no_room() {
let fake_win_size = PositionAndSize {
- columns: 8,
+ cols: 8,
rows: 4,
x: 0,
y: 0,
@@ -223,7 +223,7 @@ pub fn cannot_split_largest_terminal_when_there_is_no_room() {
#[test]
pub fn scrolling_up_inside_a_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -259,7 +259,7 @@ pub fn scrolling_up_inside_a_pane() {
#[test]
pub fn scrolling_down_inside_a_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -297,7 +297,7 @@ pub fn scrolling_down_inside_a_pane() {
#[test]
pub fn scrolling_page_up_inside_a_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -332,7 +332,7 @@ pub fn scrolling_page_up_inside_a_pane() {
#[test]
pub fn scrolling_page_down_inside_a_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -372,7 +372,7 @@ pub fn max_panes() {
// with the --max-panes option, we only allow a certain amount of panes on screen
// simultaneously, new panes beyond this limit will close older panes on screen
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -409,7 +409,7 @@ pub fn max_panes() {
#[test]
pub fn toggle_focused_pane_fullscreen() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -452,7 +452,7 @@ pub fn bracketed_paste() {
// since it's inside a bracketed paste block, while the "QUIT" command is, since it is already
// past the block
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/close_pane.rs b/src/tests/integration/close_pane.rs
index 59881514..afdc3f2e 100644
--- a/src/tests/integration/close_pane.rs
+++ b/src/tests/integration/close_pane.rs
@@ -28,7 +28,7 @@ pub fn close_pane_with_another_pane_above_it() {
// └───────────┘ └───────────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -70,7 +70,7 @@ pub fn close_pane_with_another_pane_below_it() {
// └───────────┘ └───────────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -111,7 +111,7 @@ pub fn close_pane_with_another_pane_to_the_left() {
// └─────┴─────┘ └──────────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -151,7 +151,7 @@ pub fn close_pane_with_another_pane_to_the_right() {
// └─────┴─────┘ └──────────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -194,7 +194,7 @@ pub fn close_pane_with_multiple_panes_above_it() {
// └───────────┘ └─────┴─────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -240,7 +240,7 @@ pub fn close_pane_with_multiple_panes_below_it() {
// └─────┴─────┘ └─────┴─────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -284,7 +284,7 @@ pub fn close_pane_with_multiple_panes_to_the_left() {
// └─────┴─────┘ └──────────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -330,7 +330,7 @@ pub fn close_pane_with_multiple_panes_to_the_right() {
// └─────┴─────┘ └──────────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -374,7 +374,7 @@ pub fn close_pane_with_multiple_panes_above_it_away_from_screen_edges() {
// └───┴───────┴───┘ └───┴───┴───┴───┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -441,7 +441,7 @@ pub fn close_pane_with_multiple_panes_below_it_away_from_screen_edges() {
// └───┴───┴───┴───┘ └───┴───┴───┴───┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -506,7 +506,7 @@ pub fn close_pane_with_multiple_panes_to_the_left_away_from_screen_edges() {
// └────┴──────┘ └────┴──────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 30,
x: 0,
y: 0,
@@ -571,7 +571,7 @@ pub fn close_pane_with_multiple_panes_to_the_right_away_from_screen_edges() {
// └────┴──────┘ └────┴──────┘
// █ == pane being closed
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 30,
x: 0,
y: 0,
@@ -626,7 +626,7 @@ pub fn close_pane_with_multiple_panes_to_the_right_away_from_screen_edges() {
#[test]
pub fn closing_last_pane_exits_app() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/compatibility.rs b/src/tests/integration/compatibility.rs
index ec983b09..06a409ff 100644
--- a/src/tests/integration/compatibility.rs
+++ b/src/tests/integration/compatibility.rs
@@ -27,14 +27,14 @@ use zellij_utils::input::config::Config;
fn get_fake_os_input(fake_win_size: &PositionAndSize, fixture_name: &str) -> FakeInputOutput {
let mut tty_inputs = HashMap::new();
let fixture_bytes = Bytes::from_file_in_fixtures(&fixture_name);
- tty_inputs.insert(fake_win_size.columns as u16, fixture_bytes);
+ tty_inputs.insert(fake_win_size.cols as u16, fixture_bytes);
FakeInputOutput::new(fake_win_size.clone()).with_tty_inputs(tty_inputs)
}
#[test]
pub fn run_bandwhich_from_fish_shell() {
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -64,7 +64,7 @@ pub fn run_bandwhich_from_fish_shell() {
#[test]
pub fn fish_tab_completion_options() {
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -98,7 +98,7 @@ pub fn fish_select_tab_completion_options() {
// this is not clearly seen in the snapshot because it does not include styles,
// but we can see the command line change and the cursor staying in place
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -136,7 +136,7 @@ pub fn vim_scroll_region_down() {
// file
// experience appear to the user
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -171,7 +171,7 @@ pub fn vim_ctrl_d() {
// end of the scroll region
// vim makes sure to fill these empty lines with the rest of the file
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -205,7 +205,7 @@ pub fn vim_ctrl_u() {
// this causes the effect of scrolling up X lines (vim replaces the lines with the ones in the
// file above the current content)
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -234,7 +234,7 @@ pub fn vim_ctrl_u() {
#[test]
pub fn htop() {
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -263,7 +263,7 @@ pub fn htop() {
#[test]
pub fn htop_scrolling() {
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -292,7 +292,7 @@ pub fn htop_scrolling() {
#[test]
pub fn htop_right_scrolling() {
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -329,7 +329,7 @@ pub fn vim_overwrite() {
// * confirm you would like to change the file by pressing 'y' and then ENTER
// * if everything looks fine, this test passed :)
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -361,7 +361,7 @@ pub fn clear_scroll_region() {
// this means that when vim exits, we get back the previous scroll
// buffer
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -390,7 +390,7 @@ pub fn clear_scroll_region() {
#[test]
pub fn display_tab_characters_properly() {
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -419,7 +419,7 @@ pub fn display_tab_characters_properly() {
#[test]
pub fn neovim_insert_mode() {
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -450,7 +450,7 @@ pub fn bash_cursor_linewrap() {
// this test makes sure that when we enter a command that is beyond the screen border, that it
// immediately goes down one line
let fake_win_size = PositionAndSize {
- columns: 116,
+ cols: 116,
rows: 28,
x: 0,
y: 0,
@@ -481,7 +481,7 @@ pub fn fish_paste_multiline() {
// here we paste a multiline command in fish shell, making sure we support it
// going up and changing the colors of our line-wrapped pasted text
let fake_win_size = PositionAndSize {
- columns: 149,
+ cols: 149,
rows: 28,
x: 0,
y: 0,
@@ -510,7 +510,7 @@ pub fn fish_paste_multiline() {
#[test]
pub fn git_log() {
let fake_win_size = PositionAndSize {
- columns: 149,
+ cols: 149,
rows: 28,
x: 0,
y: 0,
@@ -541,7 +541,7 @@ pub fn git_diff_scrollup() {
// this tests makes sure that when we have a git diff that exceeds the screen size
// we are able to scroll up
let fake_win_size = PositionAndSize {
- columns: 149,
+ cols: 149,
rows: 28,
x: 0,
y: 0,
@@ -570,7 +570,7 @@ pub fn git_diff_scrollup() {
#[test]
pub fn emacs_longbuf() {
let fake_win_size = PositionAndSize {
- columns: 284,
+ cols: 284,
rows: 60,
x: 0,
y: 0,
@@ -599,7 +599,7 @@ pub fn emacs_longbuf() {
#[test]
pub fn top_and_quit() {
let fake_win_size = PositionAndSize {
- columns: 235,
+ cols: 235,
rows: 56,
x: 0,
y: 0,
@@ -634,7 +634,7 @@ pub fn exa_plus_omf_theme() {
// over existing on-screen content without deleting it, so we must
// convert it to spaces
let fake_win_size = PositionAndSize {
- columns: 235,
+ cols: 235,
rows: 56,
x: 0,
y: 0,
diff --git a/src/tests/integration/layouts.rs b/src/tests/integration/layouts.rs
index e6986924..0572de6c 100644
--- a/src/tests/integration/layouts.rs
+++ b/src/tests/integration/layouts.rs
@@ -16,7 +16,7 @@ fn get_fake_os_input(fake_win_size: &PositionAndSize) -> FakeInputOutput {
#[test]
pub fn accepts_basic_layout() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/move_focus_down.rs b/src/tests/integration/move_focus_down.rs
index 2f18ab62..5f3afc6e 100644
--- a/src/tests/integration/move_focus_down.rs
+++ b/src/tests/integration/move_focus_down.rs
@@ -19,7 +19,7 @@ fn get_fake_os_input(fake_win_size: &PositionAndSize) -> FakeInputOutput {
#[test]
pub fn move_focus_down() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -54,7 +54,7 @@ pub fn move_focus_down() {
#[test]
pub fn move_focus_down_to_the_most_recently_used_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/move_focus_left.rs b/src/tests/integration/move_focus_left.rs
index a9fca49e..32c93770 100644
--- a/src/tests/integration/move_focus_left.rs
+++ b/src/tests/integration/move_focus_left.rs
@@ -20,7 +20,7 @@ fn get_fake_os_input(fake_win_size: &PositionAndSize) -> FakeInputOutput {
#[test]
pub fn move_focus_left() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -54,7 +54,7 @@ pub fn move_focus_left() {
#[test]
pub fn move_focus_left_to_the_most_recently_used_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -92,7 +92,7 @@ pub fn move_focus_left_to_the_most_recently_used_pane() {
#[test]
pub fn move_focus_left_changes_tab() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/move_focus_right.rs b/src/tests/integration/move_focus_right.rs
index c85d5b96..370fdcbf 100644
--- a/src/tests/integration/move_focus_right.rs
+++ b/src/tests/integration/move_focus_right.rs
@@ -20,7 +20,7 @@ fn get_fake_os_input(fake_win_size: &PositionAndSize) -> FakeInputOutput {
#[test]
pub fn move_focus_right() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -55,7 +55,7 @@ pub fn move_focus_right() {
#[test]
pub fn move_focus_right_to_the_most_recently_used_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -92,7 +92,7 @@ pub fn move_focus_right_to_the_most_recently_used_pane() {
#[test]
pub fn move_focus_right_changes_tab() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/move_focus_up.rs b/src/tests/integration/move_focus_up.rs
index d161ff8a..1111660c 100644
--- a/src/tests/integration/move_focus_up.rs
+++ b/src/tests/integration/move_focus_up.rs
@@ -19,7 +19,7 @@ fn get_fake_os_input(fake_win_size: &PositionAndSize) -> FakeInputOutput {
#[test]
pub fn move_focus_up() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -53,7 +53,7 @@ pub fn move_focus_up() {
#[test]
pub fn move_focus_up_to_the_most_recently_used_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/resize_down.rs b/src/tests/integration/resize_down.rs
index e5d35c26..6f087643 100644
--- a/src/tests/integration/resize_down.rs
+++ b/src/tests/integration/resize_down.rs
@@ -29,7 +29,7 @@ pub fn resize_down_with_pane_above() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -73,7 +73,7 @@ pub fn resize_down_with_pane_below() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -122,7 +122,7 @@ pub fn resize_down_with_panes_above_and_below() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 25,
x: 0,
y: 0,
@@ -169,7 +169,7 @@ pub fn resize_down_with_multiple_panes_above() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -219,7 +219,7 @@ pub fn resize_down_with_panes_above_aligned_left_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -271,7 +271,7 @@ pub fn resize_down_with_panes_below_aligned_left_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -322,7 +322,7 @@ pub fn resize_down_with_panes_above_aligned_right_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -371,7 +371,7 @@ pub fn resize_down_with_panes_below_aligned_right_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -421,7 +421,7 @@ pub fn resize_down_with_panes_above_aligned_left_and_right_with_current_pane() {
// └───┴───┴───┘ └───┴───┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -475,7 +475,7 @@ pub fn resize_down_with_panes_below_aligned_left_and_right_with_current_pane() {
// └───┴───┴───┘ └───┴───┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -531,7 +531,7 @@ pub fn resize_down_with_panes_above_aligned_left_and_right_with_panes_to_the_lef
// └─┴─┴───┴─┴─┘ └─┴─┴───┴─┴─┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 40,
x: 0,
y: 0,
@@ -605,7 +605,7 @@ pub fn resize_down_with_panes_below_aligned_left_and_right_with_to_the_left_and_
// └─┴───────┴─┘ └─┴───────┴─┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 40,
x: 0,
y: 0,
@@ -678,7 +678,7 @@ pub fn cannot_resize_down_when_pane_below_is_at_minimum_height() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 7,
x: 0,
y: 0,
diff --git a/src/tests/integration/resize_left.rs b/src/tests/integration/resize_left.rs
index 564d5c60..a53e8255 100644
--- a/src/tests/integration/resize_left.rs
+++ b/src/tests/integration/resize_left.rs
@@ -25,7 +25,7 @@ pub fn resize_left_with_pane_to_the_left() {
// └─────┴─────┘ └───┴───────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -67,7 +67,7 @@ pub fn resize_left_with_pane_to_the_right() {
// └─────┴─────┘ └───┴───────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -110,7 +110,7 @@ pub fn resize_left_with_panes_to_the_left_and_right() {
// └─────┴─────┴─────┘ └─────┴───┴───────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -155,7 +155,7 @@ pub fn resize_left_with_multiple_panes_to_the_left() {
// └─────┴─────┘ └───┴───────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -203,7 +203,7 @@ pub fn resize_left_with_panes_to_the_left_aligned_top_with_current_pane() {
// └─────┴─────┘ └───┴───────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -253,7 +253,7 @@ pub fn resize_left_with_panes_to_the_right_aligned_top_with_current_pane() {
// └─────┴─────┘ └───┴───────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -300,7 +300,7 @@ pub fn resize_left_with_panes_to_the_left_aligned_bottom_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -349,7 +349,7 @@ pub fn resize_left_with_panes_to_the_right_aligned_bottom_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -399,7 +399,7 @@ pub fn resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pa
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -453,7 +453,7 @@ pub fn resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_p
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -509,7 +509,7 @@ pub fn resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_abov
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 40,
x: 0,
y: 0,
@@ -583,7 +583,7 @@ pub fn resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_abo
// █ == focused pane
let fake_win_size = PositionAndSize {
// TODO: combine with above
- columns: 121,
+ cols: 121,
rows: 40,
x: 0,
y: 0,
@@ -655,7 +655,7 @@ pub fn cannot_resize_left_when_pane_to_the_left_is_at_minimum_width() {
// └─┴─┘ └─┴─┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 9,
+ cols: 9,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/resize_right.rs b/src/tests/integration/resize_right.rs
index 716ed128..f5e62043 100644
--- a/src/tests/integration/resize_right.rs
+++ b/src/tests/integration/resize_right.rs
@@ -25,7 +25,7 @@ pub fn resize_right_with_pane_to_the_left() {
// └─────┴─────┘ └───────┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -67,7 +67,7 @@ pub fn resize_right_with_pane_to_the_right() {
// └─────┴─────┘ └───────┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -110,7 +110,7 @@ pub fn resize_right_with_panes_to_the_left_and_right() {
// └─────┴─────┴─────┘ └─────┴───────┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -155,7 +155,7 @@ pub fn resize_right_with_multiple_panes_to_the_left() {
// └─────┴─────┘ └───────┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -203,7 +203,7 @@ pub fn resize_right_with_panes_to_the_left_aligned_top_with_current_pane() {
// └─────┴─────┘ └───────┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -253,7 +253,7 @@ pub fn resize_right_with_panes_to_the_right_aligned_top_with_current_pane() {
// └─────┴─────┘ └───────┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -300,7 +300,7 @@ pub fn resize_right_with_panes_to_the_left_aligned_bottom_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -349,7 +349,7 @@ pub fn resize_right_with_panes_to_the_right_aligned_bottom_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -399,7 +399,7 @@ pub fn resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_p
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -453,7 +453,7 @@ pub fn resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -509,7 +509,7 @@ pub fn resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_abo
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 40,
x: 0,
y: 0,
@@ -582,7 +582,7 @@ pub fn resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_ab
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 40,
x: 0,
y: 0,
@@ -654,7 +654,7 @@ pub fn cannot_resize_right_when_pane_to_the_left_is_at_minimum_width() {
// └─┴─┘ └─┴─┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 9,
+ cols: 9,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/resize_up.rs b/src/tests/integration/resize_up.rs
index 0097756a..5d68d1d3 100644
--- a/src/tests/integration/resize_up.rs
+++ b/src/tests/integration/resize_up.rs
@@ -27,7 +27,7 @@ pub fn resize_up_with_pane_above() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -71,7 +71,7 @@ pub fn resize_up_with_pane_below() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -119,7 +119,7 @@ pub fn resize_up_with_panes_above_and_below() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -165,7 +165,7 @@ pub fn resize_up_with_multiple_panes_above() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -213,7 +213,7 @@ pub fn resize_up_with_panes_above_aligned_left_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -265,7 +265,7 @@ pub fn resize_up_with_panes_below_aligned_left_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -316,7 +316,7 @@ pub fn resize_up_with_panes_above_aligned_right_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -365,7 +365,7 @@ pub fn resize_up_with_panes_below_aligned_right_with_current_pane() {
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -415,7 +415,7 @@ pub fn resize_up_with_panes_above_aligned_left_and_right_with_current_pane() {
// └───┴───┴───┘ └───┴───┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -469,7 +469,7 @@ pub fn resize_up_with_panes_below_aligned_left_and_right_with_current_pane() {
// └───┴───┴───┘ └───┴───┴───┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -525,7 +525,7 @@ pub fn resize_up_with_panes_above_aligned_left_and_right_with_panes_to_the_left_
// └─┴─┴───┴─┴─┘ └─┴─┴───┴─┴─┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 40,
x: 0,
y: 0,
@@ -599,7 +599,7 @@ pub fn resize_up_with_panes_below_aligned_left_and_right_with_to_the_left_and_ri
// └─┴───────┴─┘ └─┴───────┴─┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 40,
x: 0,
y: 0,
@@ -672,7 +672,7 @@ pub fn cannot_resize_up_when_pane_above_is_at_minimum_height() {
// └───────────┘ └───────────┘
// █ == focused pane
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 7,
x: 0,
y: 0,
diff --git a/src/tests/integration/tabs.rs b/src/tests/integration/tabs.rs
index 90f82c6d..922a03bc 100644
--- a/src/tests/integration/tabs.rs
+++ b/src/tests/integration/tabs.rs
@@ -21,7 +21,7 @@ fn get_fake_os_input(fake_win_size: &PositionAndSize) -> FakeInputOutput {
#[test]
pub fn open_new_tab() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -56,7 +56,7 @@ pub fn open_new_tab() {
#[test]
pub fn switch_to_prev_tab() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -92,7 +92,7 @@ pub fn switch_to_prev_tab() {
#[test]
pub fn switch_to_next_tab() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -128,7 +128,7 @@ pub fn switch_to_next_tab() {
#[test]
pub fn close_tab() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -164,7 +164,7 @@ pub fn close_tab() {
#[test]
pub fn close_last_pane_in_a_tab() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -201,7 +201,7 @@ pub fn close_last_pane_in_a_tab() {
#[test]
pub fn close_the_middle_tab() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -240,7 +240,7 @@ pub fn close_the_middle_tab() {
#[test]
pub fn close_the_tab_that_has_a_pane_in_fullscreen() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -284,7 +284,7 @@ pub fn close_the_tab_that_has_a_pane_in_fullscreen() {
#[test]
pub fn closing_last_tab_exits_the_app() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
diff --git a/src/tests/integration/terminal_window_resize.rs b/src/tests/integration/terminal_window_resize.rs
index 2be41c3a..104e89e8 100644
--- a/src/tests/integration/terminal_window_resize.rs
+++ b/src/tests/integration/terminal_window_resize.rs
@@ -15,7 +15,7 @@ fn get_fake_os_input(fake_win_size: &PositionAndSize) -> FakeInputOutput {
#[test]
pub fn window_width_decrease_with_one_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -24,7 +24,7 @@ pub fn window_width_decrease_with_one_pane() {
let mut fake_input_output = get_fake_os_input(&fake_win_size);
fake_input_output.add_terminal_input(&[&QUIT]);
fake_input_output.add_sigwinch_event(PositionAndSize {
- columns: 90,
+ cols: 90,
rows: 20,
x: 0,
y: 0,
@@ -51,7 +51,7 @@ pub fn window_width_decrease_with_one_pane() {
#[test]
pub fn window_width_increase_with_one_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -60,7 +60,7 @@ pub fn window_width_increase_with_one_pane() {
let mut fake_input_output = get_fake_os_input(&fake_win_size);
fake_input_output.add_terminal_input(&[&QUIT]);
fake_input_output.add_sigwinch_event(PositionAndSize {
- columns: 141,
+ cols: 141,
rows: 20,
x: 0,
y: 0,
@@ -87,7 +87,7 @@ pub fn window_width_increase_with_one_pane() {
#[test]
pub fn window_height_increase_with_one_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -96,7 +96,7 @@ pub fn window_height_increase_with_one_pane() {
let mut fake_input_output = get_fake_os_input(&fake_win_size);
fake_input_output.add_terminal_input(&[&QUIT]);
fake_input_output.add_sigwinch_event(PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 30,
x: 0,
y: 0,
@@ -123,7 +123,7 @@ pub fn window_height_increase_with_one_pane() {
#[test]
pub fn window_width_and_height_decrease_with_one_pane() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -132,7 +132,7 @@ pub fn window_width_and_height_decrease_with_one_pane() {
let mut fake_input_output = get_fake_os_input(&fake_win_size);
fake_input_output.add_terminal_input(&[&QUIT]);
fake_input_output.add_sigwinch_event(PositionAndSize {
- columns: 90,
+ cols: 90,
rows: 10,
x: 0,
y: 0,
diff --git a/src/tests/integration/toggle_fullscreen.rs b/src/tests/integration/toggle_fullscreen.rs
index 80257982..52e243e6 100644
--- a/src/tests/integration/toggle_fullscreen.rs
+++ b/src/tests/integration/toggle_fullscreen.rs
@@ -19,7 +19,7 @@ fn get_fake_os_input(fake_win_size: &PositionAndSize) -> FakeInputOutput {
#[test]
pub fn adding_new_terminal_in_fullscreen() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,
@@ -54,7 +54,7 @@ pub fn adding_new_terminal_in_fullscreen() {
#[test]
pub fn move_focus_is_disabled_in_fullscreen() {
let fake_win_size = PositionAndSize {
- columns: 121,
+ cols: 121,
rows: 20,
x: 0,
y: 0,