aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-10 09:57:19 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-11 17:05:41 -0400
commita0d3461bf8a044594f0a3fb7ae978243474d7b43 (patch)
tree2995e297e72b4f0c35ba387781e3dd4e28fe47b4
parent20e5cb151be1b7dd6a8b054b1d5ec2e4a02f6e13 (diff)
downloadrneovim-a0d3461bf8a044594f0a3fb7ae978243474d7b43.tar.gz
rneovim-a0d3461bf8a044594f0a3fb7ae978243474d7b43.tar.bz2
rneovim-a0d3461bf8a044594f0a3fb7ae978243474d7b43.zip
vim-patch:8.2.2050: search test contains unneeded sleeps
Problem: Search test contains unneeded sleeps. Solution: Rename the function, remove sleeps. (Christian Brabandt, closes vim/vim#7369) https://github.com/vim/vim/commit/6bed0dbc8500be3ea751cc527a6ee89ca073a4d1
-rw-r--r--src/nvim/testdir/test_search.vim8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim
index d0a0019d46..75d42b986b 100644
--- a/src/nvim/testdir/test_search.vim
+++ b/src/nvim/testdir/test_search.vim
@@ -1344,7 +1344,7 @@ func Test_search_smartcase_utf8()
close!
endfunc
-func Test_zzzz_incsearch_highlighting_newline()
+func Test_incsearch_highlighting_newline()
CheckRunVimInTerminal
CheckOption incsearch
CheckScreendump
@@ -1357,20 +1357,16 @@ func Test_zzzz_incsearch_highlighting_newline()
[CODE]
call writefile(commands, 'Xincsearch_nl')
let buf = RunVimInTerminal('-S Xincsearch_nl', {'rows': 5, 'cols': 10})
- " Need to send one key at a time to force a redraw
call term_sendkeys(buf, '/test')
- sleep 100m
call VerifyScreenDump(buf, 'Test_incsearch_newline1', {})
+ " Need to send one key at a time to force a redraw
call term_sendkeys(buf, '\n')
- sleep 100m
call VerifyScreenDump(buf, 'Test_incsearch_newline2', {})
call term_sendkeys(buf, 'x')
- sleep 100m
call VerifyScreenDump(buf, 'Test_incsearch_newline3', {})
call term_sendkeys(buf, 'x')
call VerifyScreenDump(buf, 'Test_incsearch_newline4', {})
call term_sendkeys(buf, "\<CR>")
- sleep 100m
call VerifyScreenDump(buf, 'Test_incsearch_newline5', {})
call StopVimInTerminal(buf)