aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/searchhl_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-07-20 15:49:49 +0200
committerGitHub <noreply@github.com>2019-07-20 15:49:49 +0200
commit02e7ef4978767b50ce797ce95f90117ca9fd1f89 (patch)
treefee0a98a790bf91c0702c3d454c94019e0d03427 /test/functional/ui/searchhl_spec.lua
parent7935f6ce35fd65225b2bd6921078ef1036b19ae5 (diff)
parentd19d9e4d9eaffa7cd23dd71329531c88f59274c7 (diff)
downloadrneovim-02e7ef4978767b50ce797ce95f90117ca9fd1f89.tar.gz
rneovim-02e7ef4978767b50ce797ce95f90117ca9fd1f89.tar.bz2
rneovim-02e7ef4978767b50ce797ce95f90117ca9fd1f89.zip
Merge #10550 'screen.lua: expect_unchanged()'
Diffstat (limited to 'test/functional/ui/searchhl_spec.lua')
-rw-r--r--test/functional/ui/searchhl_spec.lua27
1 files changed, 3 insertions, 24 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua
index 65ae124353..c68a2bad45 100644
--- a/test/functional/ui/searchhl_spec.lua
+++ b/test/functional/ui/searchhl_spec.lua
@@ -5,8 +5,7 @@ local command = helpers.command
local feed_command = helpers.feed_command
local eq = helpers.eq
local eval = helpers.eval
-local iswin = helpers.iswin
-local sleep = helpers.sleep
+local nvim_dir = helpers.nvim_dir
describe('search highlighting', function()
local screen
@@ -148,11 +147,7 @@ describe('search highlighting', function()
end)
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'; done<cr>]])
- end
+ feed([[:terminal "]]..nvim_dir..[[/shell-test" REP 5000 foo<cr>]])
feed(':file term<CR>')
feed(':vnew<CR>')
@@ -162,23 +157,7 @@ describe('search highlighting', function()
bar foo baz
]])
feed('/foo')
- sleep(50) -- Allow some terminal activity.
- -- NB: in earlier versions terminal output was redrawn during cmdline mode.
- -- For now just assert that the screens remain unchanged.
- screen:expect([[
- {3:foo} bar baz {3:│} |
- bar baz {2:foo} {3:│} |
- bar {2:foo} baz {3:│} |
- {3:│} |
- {1:~ }{3:│} |
- {5:[No Name] [+] }{3:term }|
- /foo^ |
- ]], { [1] = {bold = true, foreground = Screen.colors.Blue1},
- [2] = {background = Screen.colors.Yellow},
- [3] = {reverse = true},
- [4] = {foreground = Screen.colors.Red},
- [5] = {bold = true, reverse = true},
- })
+ screen:expect_unchanged()
end)
it('works with incsearch', function()