patch 8.2.0615: regexp benchmark stest is old style
Problem: Regexp benchmark stest is old style.
Solution: Make it a new style test. Fix using a NULL list. Add more tests.
(Yegappan Lakshmanan, closes #5963)
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index 03285f9..99b4458 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -853,6 +853,9 @@
call popup_clear()
call assert_fails('call popup_create("text", "none")', 'E715:')
call popup_clear()
+ call assert_fails('call popup_create(test_null_string(), {})', 'E450:')
+ call assert_fails('call popup_create(test_null_list(), {})', 'E450:')
+ call popup_clear()
call assert_fails('call popup_create("text", #{col: "xxx"})', 'E475:')
call popup_clear()
@@ -902,6 +905,8 @@
call assert_fails('call popup_create("text", #{mask: test_null_list()})', 'E475:')
call assert_fails('call popup_create("text", #{mapping: []})', 'E745:')
call popup_clear()
+ call assert_fails('call popup_create("text", #{tabpage : 4})', 'E997:')
+ call popup_clear()
endfunc
func Test_win_execute_closing_curwin()
@@ -1113,8 +1118,13 @@
let line = join(map(range(1, 6), 'screenstring(1, v:val)'), '')
call assert_equal('hworld', line)
+ call assert_fails('call popup_move(winid, [])', 'E715:')
+ call assert_fails('call popup_move(winid, test_null_dict())', 'E715:')
+
call popup_close(winid)
+ call assert_equal(0, popup_move(-1, {}))
+
bwipe!
endfunc
@@ -2176,7 +2186,11 @@
call assert_equal(1, options.drag)
call assert_equal('Another', options.highlight)
+ call assert_fails('call popup_setoptions(winid, [])', 'E715:')
+ call assert_fails('call popup_setoptions(winid, test_null_dict())', 'E715:')
+
call popup_close(winid)
+ call assert_equal(0, popup_setoptions(winid, options.wrap))
endfunc
func Test_popupwin_garbage_collect()