comparison src/testdir/test_termcodes.vim @ 21897:e0af4660dfc7 v8.2.1498

patch 8.2.1498: on slow systems tests can be flaky Commit: https://github.com/vim/vim/commit/733d259a83bfdd3e1670cc1665e1bd56501799df Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 20 18:59:06 2020 +0200 patch 8.2.1498: on slow systems tests can be flaky Problem: On slow systems tests can be flaky. Solution: Use TermWait() instead of term-wait(). (Yegappan Lakshmanan, closes #6756)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Aug 2020 19:00:03 +0200
parents 08940efa6b4e
children c19acd92ee83
comparison
equal deleted inserted replaced
21896:4f7b50471a6a 21897:e0af4660dfc7
1896 1896
1897 func Test_list_builtin_terminals() 1897 func Test_list_builtin_terminals()
1898 CheckRunVimInTerminal 1898 CheckRunVimInTerminal
1899 let buf = RunVimInTerminal('', #{rows: 14}) 1899 let buf = RunVimInTerminal('', #{rows: 14})
1900 call term_sendkeys(buf, ":set cmdheight=3\<CR>") 1900 call term_sendkeys(buf, ":set cmdheight=3\<CR>")
1901 call term_wait(buf, 100) 1901 call TermWait(buf, 100)
1902 call term_sendkeys(buf, ":set term=xxx\<CR>") 1902 call term_sendkeys(buf, ":set term=xxx\<CR>")
1903 call term_wait(buf, 100) 1903 call TermWait(buf, 100)
1904 call assert_match('builtin_dumb', term_getline(buf, 11)) 1904 call assert_match('builtin_dumb', term_getline(buf, 11))
1905 call assert_match('Not found in termcap', term_getline(buf, 12)) 1905 call assert_match('Not found in termcap', term_getline(buf, 12))
1906 call StopVimInTerminal(buf) 1906 call StopVimInTerminal(buf)
1907 endfunc 1907 endfunc
1908 1908