Mercurial > vim
diff src/testdir/test_popupwin.vim @ 20120:16460964c304 v8.2.0615
patch 8.2.0615: regexp benchmark stest is old style
Commit: https://github.com/vim/vim/commit/ad48e6c1590842ab6d48e6caba3e9250734dae27
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 21 22:19:45 2020 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Apr 2020 22:30:03 +0200 |
parents | c087099e9163 |
children | b790d00d5ccb |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -853,6 +853,9 @@ func Test_popup_invalid_arguments() 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 @@ func Test_popup_invalid_arguments() 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 @@ func Test_popup_move() 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 @@ func Test_set_get_options() 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()