1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2021-12-16 21:07:35 +00:00
parent e124204c4f
commit 23e72369ff
3 changed files with 3 additions and 7 deletions

View File

@@ -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)