mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-27 16:58:50 +01:00
added integration test for setting terminal title
This commit is contained in:
parent
c911829771
commit
f6d76e0104
@ -922,6 +922,21 @@ fn pager_failed_to_parse() {
|
|||||||
.stderr(predicate::str::contains("Could not parse pager command"));
|
.stderr(predicate::str::contains("Could not parse pager command"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn pager_set_terminal_title() {
|
||||||
|
mocked_pagers::with_mocked_versions_of_more_and_most_in_path(|| {
|
||||||
|
bat()
|
||||||
|
.env("PAGER", mocked_pagers::from("echo pager-output"))
|
||||||
|
.arg("--paging=always")
|
||||||
|
.arg("--set_terminal_title")
|
||||||
|
.arg("test.txt")
|
||||||
|
.assert()
|
||||||
|
.success()
|
||||||
|
.stdout(predicate::str::contains("\u{1b}]0;bat: test.txt\x07pager-output\n").normalize());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[serial]
|
#[serial]
|
||||||
fn env_var_bat_paging() {
|
fn env_var_bat_paging() {
|
||||||
@ -2430,3 +2445,5 @@ fn highlighting_independant_from_map_syntax_case() {
|
|||||||
.stdout(expected)
|
.stdout(expected)
|
||||||
.stderr("");
|
.stderr("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user