mirror of
https://github.com/vim/vim.git
synced 2025-10-10 06:24:10 -04:00
patch 8.2.0432: a few tests fail in a huge terminal
Problem: A few tests fail in a huge terminal. Solution: Make the tests pass. (Dominique Pelle, closes #5829)
This commit is contained in:
@@ -1967,12 +1967,12 @@ endfunc
|
||||
func Test_autocmd_bufreadpre()
|
||||
new
|
||||
let b:bufreadpre = 1
|
||||
call append(0, range(100))
|
||||
call append(0, range(1000))
|
||||
w! XAutocmdBufReadPre.txt
|
||||
autocmd BufReadPre <buffer> :let b:bufreadpre += 1
|
||||
norm! 50gg
|
||||
norm! 500gg
|
||||
sp
|
||||
norm! 100gg
|
||||
norm! 1000gg
|
||||
wincmd p
|
||||
let g:wsv1 = winsaveview()
|
||||
wincmd p
|
||||
|
@@ -396,8 +396,7 @@ endfunc
|
||||
func Test_set_one_column()
|
||||
let out_mult = execute('set all')->split("\n")
|
||||
let out_one = execute('set! all')->split("\n")
|
||||
" one column should be two to four times as many lines
|
||||
call assert_inrange(len(out_mult) * 2, len(out_mult) * 4, len(out_one))
|
||||
call assert_true(len(out_mult) < len(out_one))
|
||||
endfunc
|
||||
|
||||
func Test_set_values()
|
||||
|
@@ -758,9 +758,12 @@ func Test_term_mouse_click_in_cmdline_to_set_pos()
|
||||
let row = &lines
|
||||
|
||||
for ttymouse_val in g:Ttymouse_values + g:Ttymouse_dec
|
||||
" When 'ttymouse' is 'xterm2', row/col bigger than 223 are not supported.
|
||||
if ttymouse_val !=# 'xterm2' || row <= 223
|
||||
let msg = 'ttymouse=' .. ttymouse_val
|
||||
exe 'set ttymouse=' .. ttymouse_val
|
||||
|
||||
|
||||
call feedkeys(':"3456789'
|
||||
\ .. MouseLeftClickCode(row, 7)
|
||||
\ .. MouseLeftReleaseCode(row, 7) .. 'L'
|
||||
@@ -768,6 +771,7 @@ func Test_term_mouse_click_in_cmdline_to_set_pos()
|
||||
\ .. MouseRightReleaseCode(row, 4) .. 'R'
|
||||
\ .. "\<CR>", 'Lx!')
|
||||
call assert_equal('"3R456L789', @:, msg)
|
||||
endif
|
||||
endfor
|
||||
|
||||
let &mouse = save_mouse
|
||||
|
@@ -673,7 +673,7 @@ func Test_terminal_noblock()
|
||||
let len = 5000
|
||||
endif
|
||||
|
||||
for c in ['a','b','c','d','e','f','g','h','i','j','k']
|
||||
for c in split('abcdefghijklmnopqrstuvwxyz', '\zs')
|
||||
call term_sendkeys(buf, 'echo ' . repeat(c, len) . "\<cr>")
|
||||
endfor
|
||||
call term_sendkeys(buf, "echo done\<cr>")
|
||||
@@ -2495,7 +2495,7 @@ func Test_term_nasty_callback()
|
||||
func TermExit(...)
|
||||
call term_sendkeys(bufnr('#'), "exit\<CR>")
|
||||
call popup_close(win_getid())
|
||||
endfu
|
||||
endfunc
|
||||
call OpenTerms()
|
||||
|
||||
call term_sendkeys(g:buf0, "exit\<CR>")
|
||||
@@ -2503,4 +2503,3 @@ func Test_term_nasty_callback()
|
||||
exe g:buf0 .. 'bwipe!'
|
||||
set hidden&
|
||||
endfunc
|
||||
|
||||
|
@@ -1013,13 +1013,13 @@ func Run_noroom_for_newwindow_test(dir_arg)
|
||||
let dir = (a:dir_arg == 'v') ? 'vert ' : ''
|
||||
|
||||
" Open as many windows as possible
|
||||
for i in range(500)
|
||||
while v:true
|
||||
try
|
||||
exe dir . 'new'
|
||||
catch /E36:/
|
||||
break
|
||||
endtry
|
||||
endfor
|
||||
endwhile
|
||||
|
||||
call writefile(['first', 'second', 'third'], 'Xfile1')
|
||||
call writefile([], 'Xfile2')
|
||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
432,
|
||||
/**/
|
||||
431,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user