Skip to content

Commit 027df2a

Browse files
committed
patch 8.0.1840: getwinpos() is not tested
Problem: getwinpos() is not tested. Solution: Add a test. (Dominique Pelle, closes #2911)
1 parent 9cfc7d8 commit 027df2a

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/testdir/test_gui.vim

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ func Test_getwinpos()
110110
call assert_match('Window position: X \d\+, Y \d\+', execute('winpos'))
111111
call assert_true(getwinposx() >= 0)
112112
call assert_true(getwinposy() >= 0)
113+
call assert_equal([getwinposx(), getwinposy()], getwinpos())
113114
endfunc
114115

115116
func Test_quoteplus()
@@ -138,7 +139,7 @@ func Test_quoteplus()
138139

139140
" Set the quoteplus register to test_call, and another gvim will launched.
140141
" Then, it first tries to paste the content of its own quotedplus register
141-
" onto it. Second, it tries to substitute test_responce for the pasted
142+
" onto it. Second, it tries to substitute test_response for the pasted
142143
" sentence. If the sentence is identical to test_call, the substitution
143144
" should succeed. Third, it tries to yank the result of the substitution
144145
" to its own quoteplus register, and last it quits. When system()
@@ -249,7 +250,7 @@ func Test_set_balloonexpr()
249250
setl ballooneval
250251
call assert_equal('MyBalloonExpr()', &balloonexpr)
251252
" TODO Read non-empty text, place the pointer at a character of a word,
252-
" and check if the content of the balloon is the smae as what is expected.
253+
" and check if the content of the balloon is the same as what is expected.
253254
" Also, check if textlock works as expected.
254255
setl balloonexpr&
255256
call assert_equal('', &balloonexpr)
@@ -267,7 +268,7 @@ func Test_set_balloonexpr()
267268
setl ballooneval
268269
call assert_equal('MyBalloonFuncForMultilineUsingNL()', &balloonexpr)
269270
" TODO Read non-empty text, place the pointer at a character of a word,
270-
" and check if the content of the balloon is the smae as what is
271+
" and check if the content of the balloon is the same as what is
271272
" expected. Also, check if textlock works as expected.
272273
setl balloonexpr&
273274
delfunc MyBalloonFuncForMultilineUsingNL
@@ -282,7 +283,7 @@ func Test_set_balloonexpr()
282283
setl ballooneval
283284
call assert_equal('MyBalloonFuncForMultilineUsingList()', &balloonexpr)
284285
" TODO Read non-empty text, place the pointer at a character of a word,
285-
" and check if the content of the balloon is the smae as what is
286+
" and check if the content of the balloon is the same as what is
286287
" expected. Also, check if textlock works as expected.
287288
setl balloonexpr&
288289
delfunc MyBalloonFuncForMultilineUsingList

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1840,
764766
/**/
765767
1839,
766768
/**/

0 commit comments

Comments
 (0)