aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_autocmd.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-21 14:07:50 -0700
committerGitHub <noreply@github.com>2019-09-21 14:07:50 -0700
commitfd82ce4a3a9c9833e07db079debf6c9b94a2cfd3 (patch)
tree30520e000a28c2b2099c641ce33826aea0c07541 /src/nvim/testdir/test_autocmd.vim
parentb3e56957f8e9468497e5db508d97d7b560ccfe85 (diff)
parent111d34849a0670842b56c17c3922dbf0576bb39b (diff)
downloadrneovim-fd82ce4a3a9c9833e07db079debf6c9b94a2cfd3.tar.gz
rneovim-fd82ce4a3a9c9833e07db079debf6c9b94a2cfd3.tar.bz2
rneovim-fd82ce4a3a9c9833e07db079debf6c9b94a2cfd3.zip
Merge #11060 from janlazo/vim-8.1.1783
vim-patch:8.0.{1109,1529,1539,1621,1733,1771,1776},8.1.{1783,2054,2058}
Diffstat (limited to 'src/nvim/testdir/test_autocmd.vim')
-rw-r--r--src/nvim/testdir/test_autocmd.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim
index 5848940a2b..4dd48beef4 100644
--- a/src/nvim/testdir/test_autocmd.vim
+++ b/src/nvim/testdir/test_autocmd.vim
@@ -1344,11 +1344,11 @@ func Test_Changed_FirstTime()
let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], {'term_rows': 3})
call assert_equal('running', term_getstatus(buf))
" Wait for the ruler (in the status line) to be shown.
- call WaitFor({-> term_getline(buf, 3) =~# '\<All$'})
+ call WaitForAssert({-> assert_match('\<All$', term_getline(buf, 3))})
" It's only adding autocmd, so that no event occurs.
call term_sendkeys(buf, ":au! TextChanged <buffer> call writefile(['No'], 'Xchanged.txt')\<cr>")
call term_sendkeys(buf, "\<C-\\>\<C-N>:qa!\<cr>")
- call WaitFor({-> term_getstatus(buf) == 'finished'})
+ call WaitForAssert({-> assert_equal('finished', term_getstatus(buf))})
call assert_equal([''], readfile('Xchanged.txt'))
" clean up