aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/integration/compatibility.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-11-23 18:01:16 +0100
committerGitHub <noreply@github.com>2020-11-23 18:01:16 +0100
commitf88abe6ad86da27695dac82ea8ad2e1c6fd4cc9e (patch)
treefddfea76ffc9bba8ba735e0d120dfb62b94f33e6 /src/tests/integration/compatibility.rs
parentfix(layout): total layout percent 100 validation (#57) (diff)
downloadsl0ppij-f88abe6ad86da27695dac82ea8ad2e1c6fd4cc9e.tar.gz
sl0ppij-f88abe6ad86da27695dac82ea8ad2e1c6fd4cc9e.tar.xz
sl0ppij-f88abe6ad86da27695dac82ea8ad2e1c6fd4cc9e.zip
fix(compatibility): various htop issues (#66)
* fix(compatibility): various htop issues * style(format): make rustfmt happy * fix(logging): do not delete log dir on startup * fix(tests): update htop with command toggle * chore(ci): reduce test concurrency to 1
Diffstat (limited to 'src/tests/integration/compatibility.rs')
-rw-r--r--src/tests/integration/compatibility.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tests/integration/compatibility.rs b/src/tests/integration/compatibility.rs
index a763d594..8034bfb4 100644
--- a/src/tests/integration/compatibility.rs
+++ b/src/tests/integration/compatibility.rs
@@ -192,3 +192,26 @@ pub fn vim_ctrl_u() {
assert_snapshot!(snapshot);
}
}
+
+#[test]
+pub fn htop() {
+ let fake_win_size = PositionAndSize {
+ columns: 116,
+ rows: 28,
+ x: 0,
+ y: 0,
+ };
+ let fixture_name = "htop";
+ 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);
+ }
+}