mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.0.1840: getwinpos() is not tested
Problem: getwinpos() is not tested. Solution: Add a test. (Dominique Pelle, closes #2911)
This commit is contained in:
parent
9cfc7d885c
commit
027df2a7d9
@ -110,6 +110,7 @@ func Test_getwinpos()
|
|||||||
call assert_match('Window position: X \d\+, Y \d\+', execute('winpos'))
|
call assert_match('Window position: X \d\+, Y \d\+', execute('winpos'))
|
||||||
call assert_true(getwinposx() >= 0)
|
call assert_true(getwinposx() >= 0)
|
||||||
call assert_true(getwinposy() >= 0)
|
call assert_true(getwinposy() >= 0)
|
||||||
|
call assert_equal([getwinposx(), getwinposy()], getwinpos())
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_quoteplus()
|
func Test_quoteplus()
|
||||||
@ -138,7 +139,7 @@ func Test_quoteplus()
|
|||||||
|
|
||||||
" Set the quoteplus register to test_call, and another gvim will launched.
|
" Set the quoteplus register to test_call, and another gvim will launched.
|
||||||
" Then, it first tries to paste the content of its own quotedplus register
|
" Then, it first tries to paste the content of its own quotedplus register
|
||||||
" onto it. Second, it tries to substitute test_responce for the pasted
|
" onto it. Second, it tries to substitute test_response for the pasted
|
||||||
" sentence. If the sentence is identical to test_call, the substitution
|
" sentence. If the sentence is identical to test_call, the substitution
|
||||||
" should succeed. Third, it tries to yank the result of the substitution
|
" should succeed. Third, it tries to yank the result of the substitution
|
||||||
" to its own quoteplus register, and last it quits. When system()
|
" to its own quoteplus register, and last it quits. When system()
|
||||||
@ -249,7 +250,7 @@ func Test_set_balloonexpr()
|
|||||||
setl ballooneval
|
setl ballooneval
|
||||||
call assert_equal('MyBalloonExpr()', &balloonexpr)
|
call assert_equal('MyBalloonExpr()', &balloonexpr)
|
||||||
" TODO Read non-empty text, place the pointer at a character of a word,
|
" TODO Read non-empty text, place the pointer at a character of a word,
|
||||||
" and check if the content of the balloon is the smae as what is expected.
|
" and check if the content of the balloon is the same as what is expected.
|
||||||
" Also, check if textlock works as expected.
|
" Also, check if textlock works as expected.
|
||||||
setl balloonexpr&
|
setl balloonexpr&
|
||||||
call assert_equal('', &balloonexpr)
|
call assert_equal('', &balloonexpr)
|
||||||
@ -267,7 +268,7 @@ func Test_set_balloonexpr()
|
|||||||
setl ballooneval
|
setl ballooneval
|
||||||
call assert_equal('MyBalloonFuncForMultilineUsingNL()', &balloonexpr)
|
call assert_equal('MyBalloonFuncForMultilineUsingNL()', &balloonexpr)
|
||||||
" TODO Read non-empty text, place the pointer at a character of a word,
|
" TODO Read non-empty text, place the pointer at a character of a word,
|
||||||
" and check if the content of the balloon is the smae as what is
|
" and check if the content of the balloon is the same as what is
|
||||||
" expected. Also, check if textlock works as expected.
|
" expected. Also, check if textlock works as expected.
|
||||||
setl balloonexpr&
|
setl balloonexpr&
|
||||||
delfunc MyBalloonFuncForMultilineUsingNL
|
delfunc MyBalloonFuncForMultilineUsingNL
|
||||||
@ -282,7 +283,7 @@ func Test_set_balloonexpr()
|
|||||||
setl ballooneval
|
setl ballooneval
|
||||||
call assert_equal('MyBalloonFuncForMultilineUsingList()', &balloonexpr)
|
call assert_equal('MyBalloonFuncForMultilineUsingList()', &balloonexpr)
|
||||||
" TODO Read non-empty text, place the pointer at a character of a word,
|
" TODO Read non-empty text, place the pointer at a character of a word,
|
||||||
" and check if the content of the balloon is the smae as what is
|
" and check if the content of the balloon is the same as what is
|
||||||
" expected. Also, check if textlock works as expected.
|
" expected. Also, check if textlock works as expected.
|
||||||
setl balloonexpr&
|
setl balloonexpr&
|
||||||
delfunc MyBalloonFuncForMultilineUsingList
|
delfunc MyBalloonFuncForMultilineUsingList
|
||||||
|
@ -761,6 +761,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 */
|
||||||
|
/**/
|
||||||
|
1840,
|
||||||
/**/
|
/**/
|
||||||
1839,
|
1839,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user