mirror of
https://github.com/neovim/neovim.git
synced 2026-04-29 02:34:10 +00:00
vim-patch:9.0.2100: CI: test_termdebug fails (#25997)
Problem: CI: test_termdebug fails
Solution: only test for a changed winlayout, if the window
width actually changed
Also, include an unrelated comment (which doesn't warrant its own patch
number)
305127f9f2
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -97,16 +97,22 @@ func Test_termdebug_basic()
|
||||
bw!
|
||||
endif
|
||||
set columns=160
|
||||
let winw = winwidth(0)
|
||||
Var
|
||||
call assert_equal(winnr(), winnr('$') - 1)
|
||||
call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]])
|
||||
let cn += 1
|
||||
bw!
|
||||
if winwidth(0) < winw
|
||||
call assert_equal(winnr(), winnr('$') - 1)
|
||||
call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]])
|
||||
let cn += 1
|
||||
bw!
|
||||
endif
|
||||
let winw = winwidth(0)
|
||||
Asm
|
||||
call assert_equal(winnr(), winnr('$') - 1)
|
||||
call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]])
|
||||
let cn += 1
|
||||
bw!
|
||||
if winwidth(0) < winw
|
||||
call assert_equal(winnr(), winnr('$') - 1)
|
||||
call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]])
|
||||
let cn += 1
|
||||
bw!
|
||||
endif
|
||||
set columns&
|
||||
|
||||
wincmd t
|
||||
|
||||
Reference in New Issue
Block a user