Mercurial > vim
diff src/testdir/test_vim9_func.vim @ 26604:d54a39ec6d43 v8.2.3831
patch 8.2.3831: opfunc test fails when missing feature changes function name
Commit: https://github.com/vim/vim/commit/23e72369ffa2c18e9fda1e5d77f4397dc4700764
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 16 21:07:35 2021 +0000
patch 8.2.3831: opfunc test fails when missing feature changes function name
Problem: Opfunc test fails when missing feature changes function name.
(Dominique Pell?)
Solution: Check the relevant screen line instead of using a screendump.
(closes #9360)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Dec 2021 22:15:03 +0100 |
parents | b12d8a5af20e |
children | a07323eb647f |
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -3244,7 +3244,7 @@ def Run_Test_opfunc_error() var buf = RunVimInTerminal('-S XTest_opfunc_error', {rows: 6, wait_for_ruler: 0}) WaitForAssert(() => assert_match('Press ENTER', term_getline(buf, 6))) - VerifyScreenDump(buf, 'Test_opfunc_error', {}) + WaitForAssert(() => assert_match('E684: list index out of range: 0', term_getline(buf, 5))) # clean up StopVimInTerminal(buf)