vim-patch:9.0.0586: missing change in test (#20347)

Problem:    Missing change in test.
Solution:   Add the test change.
124af71a28

vim-patch:9.0.0585: when long message test fails the error message is not visible

Problem:    When long message test fails the error message is not visible.
Solution:   Dump more lines.
6a879878f4
This commit is contained in:
zeertzjq
2022-09-26 07:46:58 +08:00
committed by GitHub
parent ac66f5af06
commit 9ffa041a9a
2 changed files with 12 additions and 5 deletions

View File

@@ -357,15 +357,14 @@ func Test_quit_long_message()
let content =<< trim END
echom range(9999)->join("\x01")
END
call writefile(content, 'Xtest_quit_message')
let buf = RunVimInTerminal('-S Xtest_quit_message', #{rows: 6, wait_for_ruler: 0})
call WaitForAssert({-> assert_match('^-- More --', term_getline(buf, 6))})
call writefile(content, 'Xtest_quit_message', 'D')
let buf = RunVimInTerminal('-S Xtest_quit_message', #{rows: 10, wait_for_ruler: 0})
call WaitForAssert({-> assert_match('^-- More --', term_getline(buf, 10))})
call term_sendkeys(buf, "q")
call VerifyScreenDump(buf, 'Test_quit_long_message', {})
" clean up
call StopVimInTerminal(buf)
call delete('Xtest_quit_message')
endfunc
" this was missing a terminating NUL