Mercurial > vim
diff src/testdir/test_search.vim @ 13808:16a062cf08c2 v8.0.1776
patch 8.0.1776: in tests, when WaitFor() fails it doesn't say why
commit https://github.com/vim/vim/commit/0e9d1ae3216a5940b36bb56d155fb300b2e55b00
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 30 14:28:24 2018 +0200
patch 8.0.1776: in tests, when WaitFor() fails it doesn't say why
Problem: In tests, when WaitFor() fails it doesn't say why.
Solution: Turn a few more WaitFor() into WaitForAssert().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 30 Apr 2018 14:30:07 +0200 |
parents | dd6a63e3e7c4 |
children | 0181a2cad0a1 |
line wrap: on
line diff
--- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -494,7 +494,7 @@ func Test_search_cmdline8() call writefile(lines, 'Xsearch.txt') let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile', 'Xsearch.txt'], {'term_rows': 3}) - call WaitFor({-> lines == [term_getline(buf, 1), term_getline(buf, 2)] }) + call WaitForAssert({-> assert_equal(lines, [term_getline(buf, 1), term_getline(buf, 2)])}) call term_sendkeys(buf, ":set incsearch hlsearch\<cr>") call term_sendkeys(buf, ":14vsp\<cr>") @@ -619,7 +619,7 @@ func Test_search_cmdline_incsearch_highl call writefile(lines, 'Xsearch.txt') let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile', 'Xsearch.txt'], {'term_rows': 3}) - call WaitFor({-> lines == [term_getline(buf, 1), term_getline(buf, 2)] }) + call WaitForAssert({-> assert_equal(lines, [term_getline(buf, 1), term_getline(buf, 2)])}) " wait for vim to complete initialization call term_wait(buf)