comparison src/testdir/test_prompt_buffer.vim @ 19852:12518b40c161 v8.2.0482

patch 8.2.0482: channel and sandbox code not sufficiently tested Commit: https://github.com/vim/vim/commit/ca68ae13114619df3e4c195b41ad0575516f5ff6 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 30 19:32:53 2020 +0200 patch 8.2.0482: channel and sandbox code not sufficiently tested Problem: Channel and sandbox code not sufficiently tested. Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5855)
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 Mar 2020 19:45:05 +0200
parents f70a3c1000bb
children 16460964c304
comparison
equal deleted inserted replaced
19851:e259e7903c55 19852:12518b40c161
119 call test_garbagecollect_now() 119 call test_garbagecollect_now()
120 " Must not crash 120 " Must not crash
121 call feedkeys("\<CR>\<C-C>", 'xt') 121 call feedkeys("\<CR>\<C-C>", 'xt')
122 call assert_true(v:true) 122 call assert_true(v:true)
123 123
124 call assert_fails("call prompt_setcallback(bufnr(), [])", 'E921:')
125 call assert_equal(0, prompt_setcallback({}, ''))
126 call assert_fails("call prompt_setinterrupt(bufnr(), [])", 'E921:')
127 call assert_equal(0, prompt_setinterrupt({}, ''))
128
124 delfunc MyPromptCallback 129 delfunc MyPromptCallback
125 bwipe! 130 bwipe!
126 endfunc 131 endfunc
127 132
128 " Test for editing the prompt buffer 133 " Test for editing the prompt buffer