comparison src/testdir/test_cmdline.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 546bdeef35f1
children c087099e9163
comparison
equal deleted inserted replaced
19851:e259e7903c55 19852:12518b40c161
1457 call assert_fails('call feedkeys("q:Q\<CR>", "xt")', 'E11:') 1457 call assert_fails('call feedkeys("q:Q\<CR>", "xt")', 'E11:')
1458 call assert_fails('call feedkeys("q:Z\<CR>", "xt")', 'E11:') 1458 call assert_fails('call feedkeys("q:Z\<CR>", "xt")', 'E11:')
1459 call assert_fails('call feedkeys("q:\<F1>\<CR>", "xt")', 'E11:') 1459 call assert_fails('call feedkeys("q:\<F1>\<CR>", "xt")', 'E11:')
1460 endfunc 1460 endfunc
1461 1461
1462 " Close the Cmd-line window in insert mode using CTRL-C
1463 func Test_cmdwin_insert_mode_close()
1464 %bw!
1465 let s = ''
1466 exe "normal q:a\<C-C>let s='Hello'\<CR>"
1467 call assert_equal('Hello', s)
1468 call assert_equal(1, winnr('$'))
1469 endfunc
1470
1462 " vim: shiftwidth=2 sts=2 expandtab 1471 " vim: shiftwidth=2 sts=2 expandtab