mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 21:36:05 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user