From cf1080bc3f2b3efe9ca34d9c3b462296f0d23334 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Tue, 29 Sep 2020 11:40:47 +0200 Subject: [PATCH] test(compatibility): bandwhich + various fish things --- src/tests/fakes.rs | 12 +- src/tests/fixtures/fish_and_bandwhich | Bin 0 -> 6272 bytes .../fish_select_tab_completion_options | Bin 0 -> 3083 bytes .../fixtures/fish_tab_completion_options | Bin 0 -> 2654 bytes src/tests/integration/basic.rs | 116 ++---------------- src/tests/integration/compatibility.rs | 90 ++++++++++++++ src/tests/integration/mod.rs | 1 + ...esize_right_and_up_on_the_same_axis-2.snap | 2 +- ...basic__split_terminals_horizontally-2.snap | 2 +- ..._fish_select_tab_completion_options-2.snap | 32 +++++ ...y__fish_select_tab_completion_options.snap | 32 +++++ ...bility__fish_tab_completion_options-2.snap | 32 +++++ ...tibility__fish_tab_completion_options.snap | 32 +++++ ...lity__run_bandwhich_from_fish_shell-2.snap | 32 +++++ ...bility__run_bandwhich_from_fish_shell.snap | 32 +++++ ...size_down_with_multiple_panes_above-2.snap | 2 +- ...e_down__resize_down_with_pane_above-2.snap | 2 +- ...e_down__resize_down_with_pane_below-2.snap | 2 +- ...ed_left_and_right_with_current_pane-9.snap | 2 +- ...t_with_panes_to_the_left_and_right-10.snap | 2 +- ...bove_aligned_left_with_current_pane-7.snap | 2 +- ...ove_aligned_right_with_current_pane-7.snap | 2 +- ...ize_down_with_panes_above_and_below-2.snap | 2 +- ...ize_down_with_panes_above_and_below-4.snap | 2 +- ...ed_left_and_right_with_current_pane-9.snap | 2 +- ...d_right_with_to_the_left_and_right-10.snap | 2 +- ...elow_aligned_left_with_current_pane-7.snap | 2 +- ...low_aligned_right_with_current_pane-7.snap | 2 +- ...eft_with_multiple_panes_to_the_left-5.snap | 2 +- ...ft_aligned_bottom_with_current_pane-7.snap | 2 +- ...ed_top_and_bottom_with_current_pane-2.snap | 2 +- ...ed_top_and_bottom_with_current_pane-4.snap | 2 +- ...d_bottom_with_panes_above_and_below-2.snap | 2 +- ...d_bottom_with_panes_above_and_below-4.snap | 2 +- ..._left_aligned_top_with_current_pane-7.snap | 2 +- ...ht_aligned_bottom_with_current_pane-7.snap | 2 +- ...ed_top_and_bottom_with_current_pane-2.snap | 2 +- ...ed_top_and_bottom_with_current_pane-4.snap | 2 +- ...d_bottom_with_panes_above_and_below-2.snap | 2 +- ..._bottom_with_panes_above_and_below-23.snap | 2 +- ..._bottom_with_panes_above_and_below-25.snap | 2 +- ...d_bottom_with_panes_above_and_below-4.snap | 2 +- ...right_aligned_top_with_current_pane-7.snap | 2 +- ...ght_with_multiple_panes_to_the_left-5.snap | 2 +- ...ft_aligned_bottom_with_current_pane-7.snap | 2 +- ...ed_top_and_bottom_with_current_pane-2.snap | 2 +- ...ed_top_and_bottom_with_current_pane-4.snap | 2 +- ...d_bottom_with_panes_above_and_below-2.snap | 2 +- ...d_bottom_with_panes_above_and_below-4.snap | 2 +- ..._left_aligned_top_with_current_pane-7.snap | 2 +- ...ht_aligned_bottom_with_current_pane-7.snap | 2 +- ...ed_top_and_bottom_with_current_pane-2.snap | 2 +- ...ed_top_and_bottom_with_current_pane-4.snap | 2 +- ...d_bottom_with_panes_above_and_below-2.snap | 2 +- ..._bottom_with_panes_above_and_below-23.snap | 2 +- ..._bottom_with_panes_above_and_below-25.snap | 2 +- ...d_bottom_with_panes_above_and_below-4.snap | 2 +- ...right_aligned_top_with_current_pane-7.snap | 2 +- ...resize_up_with_multiple_panes_above-2.snap | 2 +- ...esize_up__resize_up_with_pane_above-2.snap | 2 +- ...esize_up__resize_up_with_pane_below-2.snap | 2 +- ...ed_left_and_right_with_current_pane-9.snap | 2 +- ...t_with_panes_to_the_left_and_right-10.snap | 2 +- ...bove_aligned_left_with_current_pane-7.snap | 2 +- ...ove_aligned_right_with_current_pane-7.snap | 2 +- ...esize_up_with_panes_above_and_below-2.snap | 2 +- ...esize_up_with_panes_above_and_below-4.snap | 2 +- ...ed_left_and_right_with_current_pane-9.snap | 2 +- ...d_right_with_to_the_left_and_right-10.snap | 2 +- ...elow_aligned_left_with_current_pane-7.snap | 2 +- ...low_aligned_right_with_current_pane-7.snap | 2 +- src/tests/mod.rs | 2 +- ...sible_inputs.rs => possible_tty_inputs.rs} | 16 ++- src/tests/utils.rs | 2 +- 74 files changed, 376 insertions(+), 171 deletions(-) create mode 100644 src/tests/fixtures/fish_and_bandwhich create mode 100644 src/tests/fixtures/fish_select_tab_completion_options create mode 100644 src/tests/fixtures/fish_tab_completion_options create mode 100644 src/tests/integration/compatibility.rs create mode 100644 src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options-2.snap create mode 100644 src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options.snap create mode 100644 src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options-2.snap create mode 100644 src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options.snap create mode 100644 src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell-2.snap create mode 100644 src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell.snap rename src/tests/{possible_inputs.rs => possible_tty_inputs.rs} (81%) diff --git a/src/tests/fakes.rs b/src/tests/fakes.rs index 77bde241..f18d63e2 100644 --- a/src/tests/fakes.rs +++ b/src/tests/fakes.rs @@ -6,7 +6,7 @@ use ::std::collections::HashMap; use ::std::sync::{Arc, Mutex}; use crate::os_input_output::OsApi; -use crate::tests::possible_inputs::{Bytes, get_possible_inputs}; +use crate::tests::possible_tty_inputs::{Bytes, get_possible_tty_inputs}; #[derive(Clone)] pub enum IoEvent { @@ -74,7 +74,7 @@ pub struct FakeInputOutput { pub stdout_writer: FakeStdoutWriter, // stdout_writer.output is already an arc/mutex io_events: Arc>>, win_sizes: Arc>>, - possible_inputs: HashMap, + possible_tty_inputs: HashMap, } impl FakeInputOutput { @@ -88,9 +88,13 @@ impl FakeInputOutput { stdout_writer: FakeStdoutWriter::default(), io_events: Arc::new(Mutex::new(vec![])), win_sizes: Arc::new(Mutex::new(win_sizes)), - possible_inputs: get_possible_inputs(), + possible_tty_inputs: get_possible_tty_inputs(), } } + pub fn with_tty_inputs(mut self, tty_inputs: HashMap) -> Self { + self.possible_tty_inputs = tty_inputs; + self + } pub fn add_terminal_input(&mut self, input: &[u8]) { self.input_to_add = Arc::new(Mutex::new(Some(input.to_vec()))); } @@ -106,7 +110,7 @@ impl OsApi for FakeInputOutput { *winsize } fn set_terminal_size_using_fd(&mut self, pid: RawFd, cols: u16, rows: u16) { - let terminal_input = self.possible_inputs.get(&cols).expect(&format!("could not find input for size {:?}", cols)); + let terminal_input = self.possible_tty_inputs.get(&cols).expect(&format!("could not find input for size {:?}", cols)); self.read_buffers.lock().unwrap().insert(pid, terminal_input.clone()); self.io_events.lock().unwrap().push(IoEvent::SetTerminalSizeUsingFd(pid, cols, rows)); } diff --git a/src/tests/fixtures/fish_and_bandwhich b/src/tests/fixtures/fish_and_bandwhich new file mode 100644 index 0000000000000000000000000000000000000000..a94dc7baa4c7112bc1de2fff1f91974b2b6b9bf9 GIT binary patch literal 6272 zcmeHL&5q+l5YCMe(ma7LJ}wd>?r#5Oj6iHaidYFD!HPq~!IOB1MLHgm49jvrh$A52 zFb5ui8}F1Sp~~*Al---blLSt?8g0tu>aOpruAff4FN5r++${XzqSD1MU*~!_tLDW} zSDUdEN1}R-&Q`-c-!AD z3jbzZ7OVO4rC+YL#X6sD%Wn&RvnZC!%QwC0`!Wc^#lSm?xriVVA%-N@yI+2O&xF9l zMd=@gGZQ-Vrds(nXjSY{(Rd3S^<9?)D4!S4)5V&YOU>xq|l|L^xUstRAZtG2xz+ygb%aOigo1bIv7{eni zD)|tzczglz5qbj{c>cqh^B{r12|af<2(nL`Y?TG>ywLN1T+);k51)apBRlV007yY!S&#} z?o$cIn)W^9U*Tc&HnlkyYw)pO^@u)E`y*8OYW`wT&K5^D9oWn!YOHg{_QY+m2oo$v z0(vlff+2uWK?_dfg}pApu1EVF1Rxmz-Ud#JD^9Hhhtj|MSIqwlw&0Xw#R;4A8nX(< ztZ^D^NF%~~LQ)~`q}SY5`#Boxl6gNqqw&y_UZYOMjQWf@Kf0PQnC5dw1LLb>0~f811{zpLvvf4Bujh`Q4SU#p=-9X{pyE52p$T?0SB}QT z6F4^T&84%C%M0$m9UFJ&K1@&YE+IK~_rE^hmdo<{d|Or!0nmk$>zB2VOm5fJtk?ip znaOCf%5|~3|MB(T?*0#`nmT$vnetKkQ+A|EuUk(%{gj55M~AO;(R$*Eq3~-`ZJ9+8 zlyP0BN<;5q%iCM?99Fvh)OOSc!E0LKKQbu%!Rkg<2ZGg!z$#H9EjHd7 zmjH>hP5A*@0TO8`tprG& zlf(@rvL$Ykag)RiC9)-Ml5vy74JEQ|xZS^QO#e*;{)GOIi2|8w>sQ!zCv2w^wvoXv z7)`A*!3;N{-?gtkvw~@xLVsX2roRdOk=4LYUs(LiyXjZL_67FJ^c#U+tD05tgGwV1 zFw+W!e#gEdgr<2h@MKIj#KK&c7+-Za9i0?>;xn8+e}dJ7Oijwb*EKGR7Gs#nHDny_UuX$MO=;1Wmkh+x$S!C8&4 e`AjD&IRqyE)yV#MN!`vXwfQN1zmR`bfFJZ2@xg0lKR>704>m7BfH+o zC+ScjWjVGKI~H2QuwiQa_}-ft4$((_d7D)!UZf>wi*Ob4MO-Fq!OJSl;uk2O?$TQ7 z90eSmy_G)=>hSgNUk_{e-@oRtIi927<^#)P;En4N3l$f*P8q&kWvoc@Z#XMzwhH4q z`^<2avOJ%^M8RuA*UeNz&k{~7Fv1j$*nIu-$1CZ8w1x8Ti*pOghwo^c*#g48syZ3}x0#mX2{X8SYnhwutG^vfUqGYu0kj__m$ zd;$j@p^_Y=(gBsdGH8HL+w{VkNtmee@OasSKD|m@p|Pv4(M-C&1|nrL6QJ=Zol}r$ zlZkhrPi_VeWIE!b%gW$6;rTNl(8W!#wHEd8PHbx`a^;Aubqt4;K&UE7n@>wYRin+r z9+A@yEGjz95k2>`G9r%4Lt@3WYT+ChIz$W}9sy-hxk;3l@m&Rz_e{nRlk#_8S=`iN zl(P#=>7AO^>fk-csy223D`uNwjt{|^#&K|Idnp(~^K^R`ZbYt3&M-ZCslPu?ZV|$@ zVNfo0clnLEmqyK}VKn=458Q~{iczEWZ;;=y>0m`XmR(CfPOd1ty)P8JQE$t;-gKI( zR}|RYL8i*`$(|8TiSqAyp}l~)T|>0%8#MV;Z8@BlJuMBQI>rU~)-GeU@c%oh TO@T$O#VpwPJvJYy=WBlf*QxMM literal 0 HcmV?d00001 diff --git a/src/tests/fixtures/fish_tab_completion_options b/src/tests/fixtures/fish_tab_completion_options new file mode 100644 index 0000000000000000000000000000000000000000..f4ad186ba40c9b12b3a076e3ccb6fe09a73594e8 GIT binary patch literal 2654 zcmcgu%Z{5c6lK?FqVk)-pur#o=ws6lXr=ZyX4ikp zm-ISgBRUK;nV_O5QOxD|oO6$D&6e3E^wQ3e6uZhm6cy{QMG&R(yzeHAFA#1G-evO}YRVs=om162o?uGI8__-lfP9iJoTgkbAF zCl-`-S&fsp%0A~snxn`gn)A~j1JMn@m%w(VJ(gxADNow&hAZ%giUv3g^AFD~!vu_@ zA{&7(;Gic}(t}ibpmGp{4*2xlT!e{^M!w-2zh^$pG)fRn26pJlV9K;gk|6)roY)vJ`X}T@eq6 zoVH&vxzIehOU%H8si+Vz=&^We;(^4t*#P?pKflCn;38#sB-RSmV7c>9H?T^lDQ zzrc*$>eE{9yU(%C#u%{St}V~;DLC6Y4ldun6ilH7#2v%U$W_gmrpGSHyW`|mF}yZR z%4PnT-<*4S(tVspb1xr(n~~daX6^l( FakeInputOutput { FakeInputOutput::new(fake_win_size.clone()) @@ -19,33 +20,9 @@ pub fn starts_with_one_terminal () { let mut fake_input_output = get_fake_os_input(&fake_win_size); fake_input_output.add_terminal_input(&[17]); // quit (ctrl-q) start(Box::new(fake_input_output.clone())); - let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); - let mut vte_parser = vte::Parser::new(); - let main_pid = 0; - let x = 0; - let y = 0; - let mut terminal_output = TerminalOutput::new(main_pid, fake_win_size, x, y); - - for frame in output_frames.iter() { - for byte in frame.iter() { - vte_parser.advance(&mut terminal_output, *byte); - } - let output_lines = terminal_output.read_buffer_as_lines(); - let cursor_position_in_last_line = terminal_output.cursor_position_in_last_line(); - let mut snapshot = String::new(); - for (line_index, line) in output_lines.iter().enumerate() { - for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == output_lines.len() - 1 && character_index == cursor_position_in_last_line { - snapshot.push('█'); - } else { - snapshot.push(terminal_character.character); - } - } - if line_index != output_lines.len() - 1 { - snapshot.push('\n'); - } - } + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { assert_snapshot!(snapshot); } } @@ -61,33 +38,9 @@ pub fn split_terminals_vertically() { let mut fake_input_output = get_fake_os_input(&fake_win_size); fake_input_output.add_terminal_input(&[14, 17]); // split-vertically and quit (ctrl-n + ctrl-q) start(Box::new(fake_input_output.clone())); - let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); - let mut vte_parser = vte::Parser::new(); - let main_pid = 0; - let x = 0; - let y = 0; - let mut terminal_output = TerminalOutput::new(main_pid, fake_win_size, x, y); - - for frame in output_frames.iter() { - for byte in frame.iter() { - vte_parser.advance(&mut terminal_output, *byte); - } - let output_lines = terminal_output.read_buffer_as_lines(); - let cursor_position_in_last_line = terminal_output.cursor_position_in_last_line(); - let mut snapshot = String::new(); - for (line_index, line) in output_lines.iter().enumerate() { - for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == output_lines.len() - 1 && character_index == cursor_position_in_last_line { - snapshot.push('█'); - } else { - snapshot.push(terminal_character.character); - } - } - if line_index != output_lines.len() - 1 { - snapshot.push('\n'); - } - } + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { assert_snapshot!(snapshot); } } @@ -103,33 +56,9 @@ pub fn split_terminals_horizontally() { let mut fake_input_output = get_fake_os_input(&fake_win_size); fake_input_output.add_terminal_input(&[2, 17]); // split-horizontally and quit (ctrl-b + ctrl-q) start(Box::new(fake_input_output.clone())); - let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); - let mut vte_parser = vte::Parser::new(); - let main_pid = 0; - let x = 0; - let y = 0; - let mut terminal_output = TerminalOutput::new(main_pid, fake_win_size, x, y); - - for frame in output_frames.iter() { - for byte in frame.iter() { - vte_parser.advance(&mut terminal_output, *byte); - } - let output_lines = terminal_output.read_buffer_as_lines(); - let cursor_position_in_last_line = terminal_output.cursor_position_in_last_line(); - let mut snapshot = String::new(); - for (line_index, line) in output_lines.iter().enumerate() { - for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == output_lines.len() - 1 && character_index == cursor_position_in_last_line { - snapshot.push('█'); - } else { - snapshot.push(terminal_character.character); - } - } - if line_index != output_lines.len() - 1 { - snapshot.push('\n'); - } - } + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { assert_snapshot!(snapshot); } } @@ -163,34 +92,9 @@ pub fn resize_right_and_up_on_the_same_axis() { fake_input_output.add_terminal_input(&[2, 14, 16, 14, 16, 16, 12, 8, 11, 17]); start(Box::new(fake_input_output.clone())); - let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); - let mut vte_parser = vte::Parser::new(); - let main_pid = 0; - let x = 0; - let y = 0; - let mut terminal_output = TerminalOutput::new(main_pid, fake_win_size, x, y); - - for frame in output_frames.iter() { - for byte in frame.iter() { - vte_parser.advance(&mut terminal_output, *byte); - } - let output_lines = terminal_output.read_buffer_as_lines(); - let (cursor_x, cursor_y) = terminal_output.cursor_coordinates(); - let mut snapshot = String::new(); - for (line_index, line) in output_lines.iter().enumerate() { - for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == cursor_y - 1 && character_index == cursor_x { - snapshot.push('█'); - } else { - snapshot.push(terminal_character.character); - } - } - if line_index != output_lines.len() - 1 { - snapshot.push('\n'); - } - } + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { assert_snapshot!(snapshot); } } - diff --git a/src/tests/integration/compatibility.rs b/src/tests/integration/compatibility.rs new file mode 100644 index 00000000..e5e10061 --- /dev/null +++ b/src/tests/integration/compatibility.rs @@ -0,0 +1,90 @@ +use ::nix::pty::Winsize; +use ::insta::assert_snapshot; +use ::std::collections::HashMap; + +use crate::start; +use crate::tests::possible_tty_inputs::Bytes; +use crate::tests::fakes::{FakeInputOutput}; +use crate::tests::utils::get_output_frame_snapshots; + +/* + * These tests are general compatibility tests for non-trivial scenarios running in the terminal. + * They use fake TTY input replicated from these scenarios (and so don't actually interact with the + * OS). + * + * They work like this: + * - receive fake TTY input containing various VTE instructions. + * - run that output through mosaic so it interprets it and creates its state based on it + * - read that state into a Human-readable snapshot and compare it to the expected snapshot for + * this scenario. + * + */ + +fn get_fake_os_input (fake_win_size: &Winsize, 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.ws_col, 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 = Winsize { + ws_col: 116, + ws_row: 28, + ws_xpixel: 0, + ws_ypixel: 0, + }; + let fixture_name = "fish_and_bandwhich"; + let mut fake_input_output = get_fake_os_input(&fake_win_size, fixture_name); + fake_input_output.add_terminal_input(&[17]); // quit (ctrl-q) + start(Box::new(fake_input_output.clone())); + let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { + assert_snapshot!(snapshot); + } +} + +#[test] +pub fn fish_tab_completion_options() { + let fake_win_size = Winsize { + ws_col: 116, + ws_row: 28, + ws_xpixel: 0, + ws_ypixel: 0, + }; + let fixture_name = "fish_tab_completion_options"; + let mut fake_input_output = get_fake_os_input(&fake_win_size, fixture_name); + fake_input_output.add_terminal_input(&[17]); // quit (ctrl-q) + start(Box::new(fake_input_output.clone())); + let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { + assert_snapshot!(snapshot); + } +} + +#[test] +pub fn fish_select_tab_completion_options() { + // the difference between this and the previous test is that here we press + // twice, meaning the selection moves between the options and the command line + // changes. + // 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 = Winsize { + ws_col: 116, + ws_row: 28, + ws_xpixel: 0, + ws_ypixel: 0, + }; + let fixture_name = "fish_select_tab_completion_options"; + let mut fake_input_output = get_fake_os_input(&fake_win_size, fixture_name); + fake_input_output.add_terminal_input(&[17]); // quit (ctrl-q) + start(Box::new(fake_input_output.clone())); + let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { + assert_snapshot!(snapshot); + } +} diff --git a/src/tests/integration/mod.rs b/src/tests/integration/mod.rs index e17f1f8a..19c044e1 100644 --- a/src/tests/integration/mod.rs +++ b/src/tests/integration/mod.rs @@ -1,4 +1,5 @@ pub mod basic; +pub mod compatibility; pub mod resize_right; pub mod resize_left; pub mod resize_up; diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__basic__resize_right_and_up_on_the_same_axis-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__basic__resize_right_and_up_on_the_same_axis-2.snap index d37752a1..fd9db053 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__basic__resize_right_and_up_on_the_same_axis-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__basic__resize_right_and_up_on_the_same_axis-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__basic__split_terminals_horizontally-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__basic__split_terminals_horizontally-2.snap index 8e3c833d..1f81114b 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__basic__split_terminals_horizontally-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__basic__split_terminals_horizontally-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options-2.snap new file mode 100644 index 00000000..bdd05b0d --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options-2.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + + + + + + + + + + + + + + + + + + + + + + +Welcome to fish, the friendly interactive shell +⋊> ~/c/mosaic on main ⨯ sudo badblock 11:32:233 +badblocks (Executable, 33kB) base64 (Executable, 42kB) bash (Executable, 906kB) +bandwhich (Executable, 3.0MB) basename (Executable, 38kB) bashbug (Executable, 6.8kB) +base32 (Executable, 42kB) basenc (Executable, 50kB) bass +Bye from Mosaic!█ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options.snap new file mode 100644 index 00000000..bccc706b --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + + + + + + + + + + + + + + + + + + + + + + + +Welcome to fish, the friendly interactive shell +⋊> ~/c/mosaic on main ⨯ sudo badblock █ 11:32:233 +badblocks (Executable, 33kB) base64 (Executable, 42kB) bash (Executable, 906kB) +bandwhich (Executable, 3.0MB) basename (Executable, 38kB) bashbug (Executable, 6.8kB) +base32 (Executable, 42kB) basenc (Executable, 50kB) bass diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options-2.snap new file mode 100644 index 00000000..2f17b4c1 --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options-2.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + + + + + + + + + + + + + + + + + + + + + + +Welcome to fish, the friendly interactive shell +⋊> ~/c/mosaic on main ⨯ sudo bandwhich 11:18:26 +badblocks (Executable, 33kB) base64 (Executable, 42kB) bash (Executable, 906kB) +bandwhich (Executable, 3.0MB) basename (Executable, 38kB) bashbug (Executable, 6.8kB) +base32 (Executable, 42kB) basenc (Executable, 50kB) bass +Bye from Mosaic!█ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options.snap new file mode 100644 index 00000000..fc92f8fe --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + + + + + + + + + + + + + + + + + + + + + + + +Welcome to fish, the friendly interactive shell +⋊> ~/c/mosaic on main ⨯ sudo ba█dwhich 11:18:26 +badblocks (Executable, 33kB) base64 (Executable, 42kB) bash (Executable, 906kB) +bandwhich (Executable, 3.0MB) basename (Executable, 38kB) bashbug (Executable, 6.8kB) +base32 (Executable, 42kB) basenc (Executable, 50kB) bass diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell-2.snap new file mode 100644 index 00000000..9c90df81 --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell-2.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- +┌Utilization by process name───────────────────────────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down │ +│ │ +│firefox 3 46Bps / 57Bps │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). +Bye from Mosaic!█ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell.snap new file mode 100644 index 00000000..f8f4a539 --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + Total Up / Down: 46Bps / 57Bps +┌Utilization by process name───────────────────────────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down │ +│ │ +│firefox 3 46Bps / 5█Bps │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_multiple_panes_above-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_multiple_panes_above-2.snap index b2a384ba..46b6d868 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_multiple_panes_above-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_multiple_panes_above-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_above-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_above-2.snap index b2a384ba..46b6d868 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_above-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_above-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_below-2.snap index b2a384ba..46b6d868 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_below-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_current_pane-9.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_current_pane-9.snap index 255f4a62..d5389b0d 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_current_pane-9.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_current_pane-9.snap @@ -21,4 +21,4 @@ prompt $ │line15-bbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap index 3e3d2bbe..222d6b69 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap @@ -41,4 +41,4 @@ prompt $ │ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_with_current_pane-7.snap index 2ea4df2d..a21cf298 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_right_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_right_with_current_pane-7.snap index 2ea4df2d..a21cf298 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_right_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_right_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-2.snap index b2a384ba..46b6d868 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-4.snap index 3a959038..372e0af2 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_current_pane-9.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_current_pane-9.snap index 255f4a62..d5389b0d 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_current_pane-9.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_current_pane-9.snap @@ -21,4 +21,4 @@ prompt $ │line15-bbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap index 3e3d2bbe..222d6b69 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap @@ -41,4 +41,4 @@ prompt $ │ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_with_current_pane-7.snap index 2ea4df2d..a21cf298 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_right_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_right_with_current_pane-7.snap index 2ea4df2d..a21cf298 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_right_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_right_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_multiple_panes_to_the_left-5.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_multiple_panes_to_the_left-5.snap index 09408d88..21cbf228 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_multiple_panes_to_the_left-5.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_multiple_panes_to_the_left-5.snap @@ -21,4 +21,4 @@ prompt $ │line10-bbbbbbbbbb │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap index d2df344d..fbdc0640 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap index bb27dd0c..18a0aa00 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap index f52872e4..c9f1c991 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap index e6b8c460..79ab9146 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap index 48605097..08026a49 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_with_current_pane-7.snap index d2df344d..fbdc0640 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap index d2df344d..fbdc0640 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap index bb27dd0c..18a0aa00 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap index f52872e4..c9f1c991 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap index e6b8c460..79ab9146 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap index f4b24f00..dc49fdb4 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap @@ -31,7 +31,7 @@ prompt $ │line12-bbbbbbbbbb │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa│line12-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb a │line13-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap index 6c593b13..84792d8d 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap @@ -31,7 +31,7 @@ prompt $ │line16-bbbbbbbbbb ────────────────────────────────────────────────────────────│line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa│line12-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb a │line13-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap index 48605097..08026a49 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_with_current_pane-7.snap index d2df344d..fbdc0640 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_multiple_panes_to_the_left-5.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_multiple_panes_to_the_left-5.snap index b29ba823..cab24e28 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_multiple_panes_to_the_left-5.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_multiple_panes_to_the_left-5.snap @@ -21,4 +21,4 @@ prompt $ │line10-bbbbbbbbbb │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap index bc7487fc..a1e93515 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap index 1e4aa3b3..b2d071cd 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap index b9df1e41..c6f9ee89 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap index 716635ad..1cdb5ecd 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap index 95d8f670..5f2a1cce 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_with_current_pane-7.snap index bc7487fc..a1e93515 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap index bc7487fc..a1e93515 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap index 1e4aa3b3..b2d071cd 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap index b9df1e41..c6f9ee89 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap index 716635ad..1cdb5ecd 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap index 960cec82..91b6d4ab 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap @@ -31,7 +31,7 @@ prompt $ │line12-bbbbbbbbbb │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa│line12-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb a │line13-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap index ce5b4946..fcd72d11 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap @@ -31,7 +31,7 @@ prompt $ │line16-bbbbbbbbbb ────────────────────────────────────────────────────────────│line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa│line12-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb a │line13-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap index 95d8f670..5f2a1cce 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_with_current_pane-7.snap index bc7487fc..a1e93515 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_multiple_panes_above-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_multiple_panes_above-2.snap index 9234fdda..ad632259 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_multiple_panes_above-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_multiple_panes_above-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_above-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_above-2.snap index 9234fdda..ad632259 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_above-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_above-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_below-2.snap index 9234fdda..ad632259 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_below-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_current_pane-9.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_current_pane-9.snap index 8145320a..9885ff37 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_current_pane-9.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_current_pane-9.snap @@ -21,4 +21,4 @@ prompt $ │line15-bbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap index 54723f8e..b86c4f61 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap @@ -41,4 +41,4 @@ prompt $ │ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_with_current_pane-7.snap index 261ec3cc..b20ed817 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_right_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_right_with_current_pane-7.snap index 261ec3cc..b20ed817 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_right_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_right_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-2.snap index 9234fdda..ad632259 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-4.snap index 5780ec4e..31e5ca9e 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_current_pane-9.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_current_pane-9.snap index 8145320a..9885ff37 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_current_pane-9.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_current_pane-9.snap @@ -21,4 +21,4 @@ prompt $ │line15-bbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap index 54723f8e..b86c4f61 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap @@ -41,4 +41,4 @@ prompt $ │ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_with_current_pane-7.snap index 261ec3cc..b20ed817 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_right_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_right_with_current_pane-7.snap index 261ec3cc..b20ed817 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_right_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_right_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/mod.rs b/src/tests/mod.rs index e27bc749..5bf3c0ea 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -1,5 +1,5 @@ pub mod integration; -pub mod possible_inputs; +pub mod possible_tty_inputs; pub mod tty_inputs; pub mod fakes; pub mod utils; diff --git a/src/tests/possible_inputs.rs b/src/tests/possible_tty_inputs.rs similarity index 81% rename from src/tests/possible_inputs.rs rename to src/tests/possible_tty_inputs.rs index 0cfef27c..950b1ae4 100644 --- a/src/tests/possible_inputs.rs +++ b/src/tests/possible_tty_inputs.rs @@ -1,4 +1,6 @@ use std::collections::HashMap; +use std::fs; +use std::path::PathBuf; use crate::tests::tty_inputs::{COL_10, COL_60, COL_14, COL_19, COL_20, COL_24, COL_29, COL_30, COL_34, COL_39, COL_40, COL_50, COL_70, COL_121}; #[derive(Clone, Debug)] @@ -14,6 +16,18 @@ impl Bytes { read_position: 0 } } + pub fn from_file_in_fixtures(file_name: &str) -> Self { + let mut path_to_file = PathBuf::new(); + path_to_file.push("src"); + path_to_file.push("tests"); + path_to_file.push("fixtures"); + path_to_file.push(file_name); + let content = fs::read(path_to_file).expect(&format!("could not read fixture {:?}", &file_name)); + Bytes { + content, + read_position: 0 + } + } pub fn content(mut self, content: Vec) -> Self { self.content = content; self @@ -33,7 +47,7 @@ impl Bytes { } } -pub fn get_possible_inputs () -> HashMap { // the key is the column count for this terminal input +pub fn get_possible_tty_inputs () -> HashMap { // the key is the column count for this terminal input let mut possible_inputs = HashMap::new(); let col_10_bytes = Bytes::new().content_from_str(&COL_10); let col_14_bytes = Bytes::new().content_from_str(&COL_14); diff --git a/src/tests/utils.rs b/src/tests/utils.rs index a27717f9..dd0c2409 100644 --- a/src/tests/utils.rs +++ b/src/tests/utils.rs @@ -18,7 +18,7 @@ pub fn get_output_frame_snapshots(output_frames: &[Vec], win_size: &Winsize) let mut snapshot = String::new(); for (line_index, line) in output_lines.iter().enumerate() { for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == cursor_y - 1 && character_index == cursor_x { + if line_index == cursor_y && character_index == cursor_x { snapshot.push('█'); } else { snapshot.push(terminal_character.character);