mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.1121: test for term_gettitle() was disabled
Problem: Test for term_gettitle() was disabled. Solution: Enable the test and bail out only when it doesn't work. (Dominique Pelle, closes #3776)
This commit is contained in:
@@ -1842,17 +1842,15 @@ func Test_terminal_no_job()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_term_gettitle()
|
func Test_term_gettitle()
|
||||||
if !has('title') || empty(&t_ts)
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
" TODO: this fails on Travis
|
|
||||||
return
|
|
||||||
|
|
||||||
" term_gettitle() returns an empty string for a non-terminal buffer
|
" term_gettitle() returns an empty string for a non-terminal buffer
|
||||||
" or for a non-existing buffer.
|
" and for a non-existing buffer.
|
||||||
call assert_equal('', term_gettitle(bufnr('%')))
|
call assert_equal('', term_gettitle(bufnr('%')))
|
||||||
call assert_equal('', term_gettitle(bufnr('$') + 1))
|
call assert_equal('', term_gettitle(bufnr('$') + 1))
|
||||||
|
|
||||||
|
if !has('title') || &title == 0 || empty(&t_ts)
|
||||||
|
throw "Skipped: can't get/set title"
|
||||||
|
endif
|
||||||
|
|
||||||
let term = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'])
|
let term = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'])
|
||||||
call WaitForAssert({-> assert_equal('[No Name] - VIM', term_gettitle(term)) })
|
call WaitForAssert({-> assert_equal('[No Name] - VIM', term_gettitle(term)) })
|
||||||
|
|
||||||
|
@@ -771,6 +771,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 */
|
||||||
|
/**/
|
||||||
|
1121,
|
||||||
/**/
|
/**/
|
||||||
1120,
|
1120,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user