diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-18 21:54:41 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-18 21:54:41 +0100 |
commit | 406cd90f1963ca60813db91c413eef4b1b78ee44 (patch) | |
tree | 87c555c66bbfa8c3c2f4b8984e8d4463f0a79b0a /src/testdir/test_arglist.vim | |
parent | 9e2bcb5d23138d45a0b6f9c1542b5facc807efe7 (diff) | |
download | vim-git-406cd90f1963ca60813db91c413eef4b1b78ee44.tar.gz |
patch 8.2.0275: some Ex code not covered by testsv8.2.0275
Problem: Some Ex code not covered by tests.
Solution: Add test cases. (Yegappan Lakshmanan, closes #5659)
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r-- | src/testdir/test_arglist.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index 9513ad334..af90ddc79 100644 --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -519,6 +519,20 @@ func Test_quit_with_arglist() call term_sendkeys(buf, ":quit\n") call WaitForAssert({-> assert_match('^E173:', term_getline(buf, 6))}) call StopVimInTerminal(buf) + + " Try :confirm quit with unedited files in arglist + let buf = RunVimInTerminal('', {'rows': 6}) + call term_sendkeys(buf, ":set nomore\n") + call term_sendkeys(buf, ":args a b c\n") + call term_sendkeys(buf, ":confirm quit\n") + call WaitForAssert({-> assert_match('^\[Y\]es, (N)o: *$', + \ term_getline(buf, 6))}) + call term_sendkeys(buf, "N") + call term_sendkeys(buf, ":confirm quit\n") + call WaitForAssert({-> assert_match('^\[Y\]es, (N)o: *$', + \ term_getline(buf, 6))}) + call term_sendkeys(buf, "Y") + call StopVimInTerminal(buf) endfunc " vim: shiftwidth=2 sts=2 expandtab |