diff src/testdir/test_popupwin.vim @ 22057:f64a16f5bff0 v8.2.1578

patch 8.2.1578: Vim9: popup_clear() does not take "true" as argument Commit: https://github.com/vim/vim/commit/62f93f4ec9db1deca088bab7783a35306e2ed4cb Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 2 22:33:24 2020 +0200 patch 8.2.1578: Vim9: popup_clear() does not take "true" as argument Problem: Vim9: popup_clear() does not take "true" as argument. Solution: Use tv_get_bool(). (closes https://github.com/vim/vim/issues/6826)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Sep 2020 22:45:25 +0200
parents e0af4660dfc7
children 0716b3299872
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -2559,20 +2559,23 @@ endfunc
 
 func Test_popupwin_close_prevwin()
   CheckFeature terminal
-
-  call assert_equal(1, winnr('$'))
+  call Popupwin_close_prevwin()
+endfunc
+
+def Popupwin_close_prevwin()
+  assert_equal(1, winnr('$'))
   split
   wincmd b
-  call assert_equal(2, winnr())
+  assert_equal(2, winnr())
   let buf = term_start(&shell, #{hidden: 1})
-  call popup_create(buf, {})
-  call TermWait(buf, 100)
-  call popup_clear(1)
-  call assert_equal(2, winnr())
+  popup_create(buf, {})
+  TermWait(buf, 100)
+  popup_clear(true)
+  assert_equal(2, winnr())
 
   quit
   exe 'bwipe! ' .. buf
-endfunc
+enddef
 
 func Test_popupwin_with_buffer_and_filter()
   new Xwithfilter