diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-05-19 10:31:47 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-19 10:31:47 +0100 |
commit | 1755a91851f7022fdd3eecfbd2cc0b508a2f2a8f (patch) | |
tree | d0b3e630953275b71ee1a97a9bdfa55912b19415 /src/testdir/test_vim9_builtin.vim | |
parent | aaadb5b6f76ea03e5eb460121f3dbf46ad04ce50 (diff) | |
download | vim-git-1755a91851f7022fdd3eecfbd2cc0b508a2f2a8f.tar.gz |
patch 8.2.4981: it is not possible to manipulate autocommandsv8.2.4981
Problem: It is not possible to manipulate autocommands.
Solution: Add functions to add, get and set autocommands. (Yegappan
Lakshmanan, closes #10291)
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 318968b9c..4f39ebb51 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -304,6 +304,18 @@ def Test_assert_report() v9.CheckDefAndScriptFailure(['assert_report([1, 2])'], ['E1013: Argument 1: type mismatch, expected string but got list<number>', 'E1174: String required for argument 1']) enddef +def Test_autocmd_add() + v9.CheckDefAndScriptFailure(['autocmd_add({})'], ['E1013: Argument 1: type mismatch, expected list<any> but got dict<unknown>', 'E1211: List required for argument 1']) +enddef + +def Test_autocmd_delete() + v9.CheckDefAndScriptFailure(['autocmd_delete({})'], ['E1013: Argument 1: type mismatch, expected list<any> but got dict<unknown>', 'E1211: List required for argument 1']) +enddef + +def Test_autocmd_get() + v9.CheckDefAndScriptFailure(['autocmd_get(10)'], ['E1013: Argument 1: type mismatch, expected dict<any> but got number', 'E1206: Dictionary required for argument 1']) +enddef + def Test_balloon_show() CheckGui CheckFeature balloon_eval |