Permalink
Browse files

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 44a693a1bdfe987edb649677c94c214f94b2aada
Showing with 6 additions and 3 deletions.
  1. +4 −3 src/testdir/test_bufwintabinfo.vim
  2. +2 −0 src/version.c
@@ -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)
@@ -789,6 +789,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
186,
/**/
185,
/**/

0 comments on commit 44a693a

Please sign in to comment.