diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-04-22 12:26:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 12:26:16 +0200 |
commit | d05712fbe7b56789b6fc5c205ef7b928cd3fb722 (patch) | |
tree | 659516bf5c89a54c7e1aabf240f0d30c17641789 /test/functional/ui/searchhl_spec.lua | |
parent | 51af911a271eb95c0032d25bef5e9313b81648b9 (diff) | |
download | rneovim-d05712fbe7b56789b6fc5c205ef7b928cd3fb722.tar.gz rneovim-d05712fbe7b56789b6fc5c205ef7b928cd3fb722.tar.bz2 rneovim-d05712fbe7b56789b6fc5c205ef7b928cd3fb722.zip |
inccommand: pause :terminal redraws (#8307)
fix #5584
Diffstat (limited to 'test/functional/ui/searchhl_spec.lua')
-rw-r--r-- | test/functional/ui/searchhl_spec.lua | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua index f241a9fc44..168080a092 100644 --- a/test/functional/ui/searchhl_spec.lua +++ b/test/functional/ui/searchhl_spec.lua @@ -5,6 +5,7 @@ local feed_command = helpers.feed_command local eq = helpers.eq local eval = helpers.eval local iswin = helpers.iswin +local sleep = helpers.sleep describe('search highlighting', function() local screen @@ -92,18 +93,13 @@ describe('search highlighting', function() ]]) end) - it('#x is preserved during :terminal activity', function() - -- Because this test verifies a _lack_ of activity after screen:sleep(), we - -- must wait the full timeout. So make it reasonable. - screen.timeout = 1000 - + it('is preserved during :terminal activity', function() if iswin() then feed([[:terminal for /L \%I in (1,1,5000) do @(echo xxx & echo xxx & echo xxx)<cr>]]) else - feed([[:terminal for i in $(seq 1 5000); do printf 'xxx\nxxx\nxxx\n'; sleep 0.1; done<cr>]]) + feed([[:terminal for i in $(seq 1 5000); do printf 'xxx\nxxx\nxxx\n'; done<cr>]]) end - feed([[<C-\><C-N>gg]]) feed(':file term<CR>') feed(':vnew<CR>') insert([[ @@ -112,6 +108,7 @@ describe('search highlighting', function() bar foo baz ]]) feed('/foo') + sleep(50) -- Allow some terminal activity. screen:expect([[ {3:foo} bar baz {3:│}xxx | bar baz {2:foo} {3:│}xxx | |