Mercurial > vim
comparison src/testdir/test_search.vim @ 23007:7cb072acc5c0 v8.2.2050
patch 8.2.2050: search test contains unneeded sleeps
Commit: https://github.com/vim/vim/commit/6bed0dbc8500be3ea751cc527a6ee89ca073a4d1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 25 17:41:20 2020 +0100
patch 8.2.2050: search test contains unneeded sleeps
Problem: Search test contains unneeded sleeps.
Solution: Rename the function, remove sleeps. (Christian Brabandt,
closes #7369)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 25 Nov 2020 17:45:03 +0100 |
parents | 00548e40e708 |
children | bb29b09902d5 |
comparison
equal
deleted
inserted
replaced
23006:45defc2a4f64 | 23007:7cb072acc5c0 |
---|---|
1774 call assert_equal(0, search('vim', 'bn', 2)) | 1774 call assert_equal(0, search('vim', 'bn', 2)) |
1775 call assert_equal(1, search('vim', 'bn', 1)) | 1775 call assert_equal(1, search('vim', 'bn', 1)) |
1776 close! | 1776 close! |
1777 endfunc | 1777 endfunc |
1778 | 1778 |
1779 func Test_zzzz_incsearch_highlighting_newline() | 1779 func Test_incsearch_highlighting_newline() |
1780 CheckRunVimInTerminal | 1780 CheckRunVimInTerminal |
1781 CheckOption incsearch | 1781 CheckOption incsearch |
1782 CheckScreendump | 1782 CheckScreendump |
1783 new | 1783 new |
1784 call test_override("char_avail", 1) | 1784 call test_override("char_avail", 1) |
1787 set incsearch nohls | 1787 set incsearch nohls |
1788 call setline(1, ['test', 'xxx']) | 1788 call setline(1, ['test', 'xxx']) |
1789 [CODE] | 1789 [CODE] |
1790 call writefile(commands, 'Xincsearch_nl') | 1790 call writefile(commands, 'Xincsearch_nl') |
1791 let buf = RunVimInTerminal('-S Xincsearch_nl', {'rows': 5, 'cols': 10}) | 1791 let buf = RunVimInTerminal('-S Xincsearch_nl', {'rows': 5, 'cols': 10}) |
1792 call term_sendkeys(buf, '/test') | |
1793 call VerifyScreenDump(buf, 'Test_incsearch_newline1', {}) | |
1792 " Need to send one key at a time to force a redraw | 1794 " Need to send one key at a time to force a redraw |
1793 call term_sendkeys(buf, '/test') | |
1794 sleep 100m | |
1795 call VerifyScreenDump(buf, 'Test_incsearch_newline1', {}) | |
1796 call term_sendkeys(buf, '\n') | 1795 call term_sendkeys(buf, '\n') |
1797 sleep 100m | |
1798 call VerifyScreenDump(buf, 'Test_incsearch_newline2', {}) | 1796 call VerifyScreenDump(buf, 'Test_incsearch_newline2', {}) |
1799 call term_sendkeys(buf, 'x') | 1797 call term_sendkeys(buf, 'x') |
1800 sleep 100m | |
1801 call VerifyScreenDump(buf, 'Test_incsearch_newline3', {}) | 1798 call VerifyScreenDump(buf, 'Test_incsearch_newline3', {}) |
1802 call term_sendkeys(buf, 'x') | 1799 call term_sendkeys(buf, 'x') |
1803 call VerifyScreenDump(buf, 'Test_incsearch_newline4', {}) | 1800 call VerifyScreenDump(buf, 'Test_incsearch_newline4', {}) |
1804 call term_sendkeys(buf, "\<CR>") | 1801 call term_sendkeys(buf, "\<CR>") |
1805 sleep 100m | |
1806 call VerifyScreenDump(buf, 'Test_incsearch_newline5', {}) | 1802 call VerifyScreenDump(buf, 'Test_incsearch_newline5', {}) |
1807 call StopVimInTerminal(buf) | 1803 call StopVimInTerminal(buf) |
1808 | 1804 |
1809 " clean up | 1805 " clean up |
1810 call delete('Xincsearch_nl') | 1806 call delete('Xincsearch_nl') |