Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 16829:5cebaecad422 v8.1.1416
patch 8.1.1416: popup_getposition() not implemented yet
commit https://github.com/vim/vim/commit/bc133543b8b0ebb1d8624e37d840b739eb00f3f3
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 29 20:26:46 2019 +0200
patch 8.1.1416: popup_getposition() not implemented yet
Problem: Popup_getposition() not implemented yet.
Solution: Implement it. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/4449)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 May 2019 20:30:05 +0200 |
parents | 069ee8dc8c8d |
children | 18593056d8f1 |
comparison
equal
deleted
inserted
replaced
16828:1a8e924e66ba | 16829:5cebaecad422 |
---|---|
157 | 157 |
158 call popup_close(winid) | 158 call popup_close(winid) |
159 | 159 |
160 bwipe! | 160 bwipe! |
161 endfunc | 161 endfunc |
162 | |
163 func Test_popup_getposition() | |
164 let winid = popup_create('hello', { | |
165 \ 'line': 2, | |
166 \ 'col': 3, | |
167 \ 'minwidth': 10, | |
168 \ 'minheight': 11, | |
169 \}) | |
170 redraw | |
171 let res = popup_getposition(winid) | |
172 call assert_equal(2, res.line) | |
173 call assert_equal(3, res.col) | |
174 call assert_equal(10, res.width) | |
175 call assert_equal(11, res.height) | |
176 | |
177 call popup_close(winid) | |
178 endfunc |