diff options
| author | denis <denismaximov98@gmail.com> | 2021-01-06 10:08:47 +0200 |
|---|---|---|
| committer | denis <denismaximov98@gmail.com> | 2021-01-06 10:08:47 +0200 |
| commit | cde7703ac79d06c8def65401fef0da6912b5977b (patch) | |
| tree | cb0fe9631d0e826737657e831ca0158473e4bbeb /src/tests/integration/compatibility.rs | |
| parent | chore: fmt (diff) | |
| download | sl0ppij-cde7703ac79d06c8def65401fef0da6912b5977b.tar.gz sl0ppij-cde7703ac79d06c8def65401fef0da6912b5977b.tar.xz sl0ppij-cde7703ac79d06c8def65401fef0da6912b5977b.zip | |
wip: added a test
Diffstat (limited to 'src/tests/integration/compatibility.rs')
| -rw-r--r-- | src/tests/integration/compatibility.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tests/integration/compatibility.rs b/src/tests/integration/compatibility.rs index e42a26fb..e9b379ab 100644 --- a/src/tests/integration/compatibility.rs +++ b/src/tests/integration/compatibility.rs @@ -461,3 +461,26 @@ pub fn git_diff_scrollup() { assert_snapshot!(snapshot); } } + +#[test] +pub fn emacs_longbuf() { + let fake_win_size = PositionAndSize { + columns: 284, + rows: 60, + x: 0, + y: 0, + }; + let fixture_name = "emacs_longbuf_tutorial"; + let mut fake_input_output = get_fake_os_input(&fake_win_size, fixture_name); + fake_input_output.add_terminal_input(&[&COMMAND_TOGGLE, &COMMAND_TOGGLE, &QUIT]); + start(Box::new(fake_input_output.clone()), Opt::default()); + 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); + } +} |
