diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-08-18 00:12:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-18 00:12:28 +0200 |
| commit | 02e9b5a8eeaf2a4696dd68ab21b33b9fa7bd6a16 (patch) | |
| tree | 4957988e6d6dc5460bcf93c28b333a70ece3e8ce /test/functional/ui/output_spec.lua | |
| parent | 35653e6bcda6923b5213fb9356c35067d6d0288f (diff) | |
| parent | 068a998e609b2568ad280e1753beb2a1251354a5 (diff) | |
| download | rneovim-02e9b5a8eeaf2a4696dd68ab21b33b9fa7bd6a16.tar.gz rneovim-02e9b5a8eeaf2a4696dd68ab21b33b9fa7bd6a16.tar.bz2 rneovim-02e9b5a8eeaf2a4696dd68ab21b33b9fa7bd6a16.zip | |
Merge pull request #19824 from bfredl/msgsep_allthethings
fix(tests): remove irrelevant usage of display-=msgsep
Diffstat (limited to 'test/functional/ui/output_spec.lua')
| -rw-r--r-- | test/functional/ui/output_spec.lua | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua index 71c6410013..9bb067ed8e 100644 --- a/test/functional/ui/output_spec.lua +++ b/test/functional/ui/output_spec.lua @@ -100,45 +100,52 @@ describe("shell command :!", function() pending('missing printf') end local screen = Screen.new(50, 4) + screen:set_default_attr_ids { + [1] = {bold = true, reverse = true}; + [2] = {bold = true, foreground = Screen.colors.SeaGreen}; + [3] = {foreground = Screen.colors.Blue}; + } screen:attach() - command("set display-=msgsep") -- Print TAB chars. #2958 feed([[:!printf '1\t2\t3'<CR>]]) - screen:expect([[ - ~ | + screen:expect{grid=[[ + {1: }| :!printf '1\t2\t3' | 1 2 3 | - Press ENTER or type command to continue^ | - ]]) + {2:Press ENTER or type command to continue}^ | + ]]} feed([[<CR>]]) + -- Print BELL control code. #4338 screen.bell = false feed([[:!printf '\007\007\007\007text'<CR>]]) screen:expect{grid=[[ - ~ | + {1: }| :!printf '\007\007\007\007text' | text | - Press ENTER or type command to continue^ | + {2:Press ENTER or type command to continue}^ | ]], condition=function() eq(true, screen.bell) end} feed([[<CR>]]) + -- Print BS control code. feed([[:echo system('printf ''\010\n''')<CR>]]) screen:expect([[ - ~ | - ^H | + {1: }| + {3:^H} | | - Press ENTER or type command to continue^ | + {2:Press ENTER or type command to continue}^ | ]]) feed([[<CR>]]) + -- Print LF control code. feed([[:!printf '\n'<CR>]]) screen:expect([[ :!printf '\n' | | | - Press ENTER or type command to continue^ | + {2:Press ENTER or type command to continue}^ | ]]) feed([[<CR>]]) end) |