Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
patch 8.1.0186: test for getwininfo() fails in GUI
Problem:    Test for getwininfo() fails in GUI.
Solution:   Account for missing tabline.
  • Loading branch information
brammool committed Jul 14, 2018
1 parent 1ce9a15 commit 44a693a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/testdir/test_bufwintabinfo.vim
Expand Up @@ -53,15 +53,16 @@ function Test_getbufwintabinfo()
call assert_equal(5, len(winlist))
call assert_equal(winwidth(1), winlist[0].width)
call assert_equal(0, winlist[0].wincol)
call assert_equal(1, winlist[0].winrow) " tabline adds one
let tablineheight = winlist[0].winrow == 1 ? 1 : 0
call assert_equal(tablineheight, winlist[0].winrow) " tabline adds one

call assert_equal(winbufnr(2), winlist[1].bufnr)
call assert_equal(winheight(2), winlist[1].height)
call assert_equal(0, winlist[1].wincol)
call assert_equal(winheight(1) + 2, winlist[1].winrow)
call assert_equal(tablineheight + winheight(1) + 1, winlist[1].winrow)

call assert_equal(1, winlist[2].winnr)
call assert_equal(1, winlist[2].winrow)
call assert_equal(tablineheight, winlist[2].winrow)
call assert_equal(0, winlist[2].wincol)

call assert_equal(winlist[2].width + 1, winlist[3].wincol)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -789,6 +789,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
186,
/**/
185,
/**/
Expand Down

0 comments on commit 44a693a

Please sign in to comment.