Mercurial > vim
comparison src/testdir/runtest.vim @ 20386:3b3589275ab9 v8.2.0748
patch 8.2.0748: cannot get a list of all popups
Commit: https://github.com/vim/vim/commit/ef6b979bfae82f64781d8b0ce0194c57111243d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 13 16:34:15 2020 +0200
patch 8.2.0748: cannot get a list of all popups
Problem: Cannot get a list of all popups.
Solution: Add popup_list(). Use it in the test runner.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 13 May 2020 16:45:05 +0200 |
parents | 42ab4d40e78f |
children | ed35c81bce77 |
comparison
equal
deleted
inserted
replaced
20385:3613c433a314 | 20386:3b3589275ab9 |
---|---|
186 | 186 |
187 " Clear any autocommands and put back the catch-all for SwapExists. | 187 " Clear any autocommands and put back the catch-all for SwapExists. |
188 au! | 188 au! |
189 au SwapExists * call HandleSwapExists() | 189 au SwapExists * call HandleSwapExists() |
190 | 190 |
191 " Close any stray popup windows. | 191 " Check for and close any stray popup windows. |
192 if has('popupwin') | 192 if has('popupwin') |
193 call assert_equal([], popup_list()) | |
193 call popup_clear(1) | 194 call popup_clear(1) |
194 endif | 195 endif |
195 | 196 |
196 " Close any extra tab pages and windows and make the current one not modified. | 197 " Close any extra tab pages and windows and make the current one not modified. |
197 while tabpagenr('$') > 1 | 198 while tabpagenr('$') > 1 |