forked from aniani/vim
patch 9.0.1566: Motif: GUI scrollbar test fails in 24 lines terminal
Problem: Motif: GUI scrollbar test fails in 24 lines terminal. Solution: Skip the part of the test that fails for now.
This commit is contained in:
@@ -733,12 +733,15 @@ func Test_scrollbars()
|
|||||||
call assert_equal(1, winline())
|
call assert_equal(1, winline())
|
||||||
call assert_equal(11, line('.'))
|
call assert_equal(11, line('.'))
|
||||||
|
|
||||||
" scroll to move line 1 at top, cursor stays in line 11
|
" FIXME: This test should also pass with Motif and 24 lines
|
||||||
let args = #{which: 'right', value: 0, dragging: 0}
|
if &lines > 24 || !has('gui_motif')
|
||||||
call test_gui_event('scrollbar', args)
|
" scroll to move line 1 at top, cursor stays in line 11
|
||||||
redraw
|
let args = #{which: 'right', value: 0, dragging: 0}
|
||||||
call assert_equal(11, winline())
|
call test_gui_event('scrollbar', args)
|
||||||
call assert_equal(11, line('.'))
|
redraw
|
||||||
|
call assert_equal(11, winline())
|
||||||
|
call assert_equal(11, line('.'))
|
||||||
|
endif
|
||||||
|
|
||||||
set nowrap
|
set nowrap
|
||||||
call setline(11, repeat('x', 150))
|
call setline(11, repeat('x', 150))
|
||||||
|
|||||||
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1566,
|
||||||
/**/
|
/**/
|
||||||
1565,
|
1565,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user