Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 19748:d089bd9511c0 v8.2.0430
patch 8.2.0430: window creation failure not properly tested
Commit: https://github.com/vim/vim/commit/5080b0a0470511bae6176a704d4591d1caba0d07
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 22 21:23:47 2020 +0100
patch 8.2.0430: window creation failure not properly tested
Problem: Window creation failure not properly tested.
Solution: Improve the test. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5826)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 22 Mar 2020 21:30:04 +0100 |
parents | b3e93a05c3ca |
children | 546bdeef35f1 |
comparison
equal
deleted
inserted
replaced
19747:1f4dc8bc8b24 | 19748:d089bd9511c0 |
---|---|
1418 | 1418 |
1419 set imcmdline& | 1419 set imcmdline& |
1420 %bwipe! | 1420 %bwipe! |
1421 endfunc | 1421 endfunc |
1422 | 1422 |
1423 " Test for opening the command-line window when too many windows are present | |
1424 func Test_cmdwin_fail_to_open() | |
1425 " Open as many windows as possible | |
1426 for i in range(100) | |
1427 try | |
1428 new | |
1429 catch /E36:/ | |
1430 break | |
1431 endtry | |
1432 endfor | |
1433 call assert_beeps('call feedkeys("q:\<CR>", "xt")') | |
1434 only | |
1435 endfunc | |
1436 | |
1437 " Test for recursively getting multiple command line inputs | 1423 " Test for recursively getting multiple command line inputs |
1438 func Test_cmdwin_multi_input() | 1424 func Test_cmdwin_multi_input() |
1439 call feedkeys(":\<C-R>=input('P: ')\<CR>\"cyan\<CR>\<CR>", 'xt') | 1425 call feedkeys(":\<C-R>=input('P: ')\<CR>\"cyan\<CR>\<CR>", 'xt') |
1440 call assert_equal('"cyan', @:) | 1426 call assert_equal('"cyan', @:) |
1441 endfunc | 1427 endfunc |