comparison src/testdir/test_digraph.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 c626fd34b66f
comparison
equal deleted inserted replaced
21896:4f7b50471a6a 21897:e0af4660dfc7
502 " Test for the characters displayed on the screen when entering a digraph 502 " Test for the characters displayed on the screen when entering a digraph
503 func Test_entering_digraph() 503 func Test_entering_digraph()
504 CheckRunVimInTerminal 504 CheckRunVimInTerminal
505 let buf = RunVimInTerminal('', {'rows': 6}) 505 let buf = RunVimInTerminal('', {'rows': 6})
506 call term_sendkeys(buf, "i\<C-K>") 506 call term_sendkeys(buf, "i\<C-K>")
507 call term_wait(buf) 507 call TermWait(buf)
508 call assert_equal('?', term_getline(buf, 1)) 508 call assert_equal('?', term_getline(buf, 1))
509 call term_sendkeys(buf, "1") 509 call term_sendkeys(buf, "1")
510 call term_wait(buf) 510 call TermWait(buf)
511 call assert_equal('1', term_getline(buf, 1)) 511 call assert_equal('1', term_getline(buf, 1))
512 call term_sendkeys(buf, "2") 512 call term_sendkeys(buf, "2")
513 call term_wait(buf) 513 call TermWait(buf)
514 call assert_equal('½', term_getline(buf, 1)) 514 call assert_equal('½', term_getline(buf, 1))
515 call StopVimInTerminal(buf) 515 call StopVimInTerminal(buf)
516 endfunc 516 endfunc
517 517
518 " vim: shiftwidth=2 sts=2 expandtab 518 " vim: shiftwidth=2 sts=2 expandtab