aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/wildmode_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-01 11:13:29 -0700
committerGitHub <noreply@github.com>2019-09-01 11:13:29 -0700
commit2f37c243482eec20fe52f298368c02eca21c758f (patch)
treee58f19e64682ee8de1de7c514025adc9e747ef4c /test/functional/ui/wildmode_spec.lua
parent78a2bbaa4b0ee6b0e575c4239b7b35eb42852910 (diff)
parent2c1749ce443c3bb15a719c947b186301bc8ef0b3 (diff)
downloadrneovim-2f37c243482eec20fe52f298368c02eca21c758f.tar.gz
rneovim-2f37c243482eec20fe52f298368c02eca21c758f.tar.bz2
rneovim-2f37c243482eec20fe52f298368c02eca21c758f.zip
Merge #10733 from justinmk/test-fixes
test: use shell-test (avoid system shell)
Diffstat (limited to 'test/functional/ui/wildmode_spec.lua')
-rw-r--r--test/functional/ui/wildmode_spec.lua18
1 files changed, 4 insertions, 14 deletions
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua
index 914256224f..738466ae2b 100644
--- a/test/functional/ui/wildmode_spec.lua
+++ b/test/functional/ui/wildmode_spec.lua
@@ -7,6 +7,7 @@ local funcs = helpers.funcs
local eq = helpers.eq
local eval = helpers.eval
local retry = helpers.retry
+local nvim_dir = helpers.nvim_dir
describe("'wildmenu'", function()
local screen
@@ -83,13 +84,8 @@ describe("'wildmenu'", function()
it('is preserved during :terminal activity', function()
command('set wildmenu wildmode=full')
command('set scrollback=4')
- if iswin() then
- feed([[:terminal for /L \%I in (1,1,5000) do @(echo foo & echo foo & echo foo)<cr>]])
- else
- feed([[:terminal for i in $(seq 1 5000); do printf 'foo\nfoo\nfoo\n'; sleep 0.1; done<cr>]])
- end
-
- feed([[<C-\><C-N>gg]])
+ feed([[:terminal "]]..nvim_dir..[[/shell-test" REP 5000 !terminal_output!<cr>]])
+ feed('G') -- Follow :terminal output.
feed([[:sign <Tab>]]) -- Invoke wildmenu.
-- NB: in earlier versions terminal output was redrawn during cmdline mode.
-- For now just assert that the screen remains unchanged.
@@ -114,13 +110,7 @@ describe("'wildmenu'", function()
-- Exiting cmdline should show the buffer.
feed([[<C-\><C-N>]])
- screen:expect([[
- ^foo |
- foo |
- foo |
- foo |
- |
- ]])
+ screen:expect{any=[[!terminal_output!]]}
end)
it('ignores :redrawstatus called from a timer #7108', function()