diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-25 23:01:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-25 23:01:38 +0100 |
commit | a4c2a24cc7772d882289a617104fe968a15969d7 (patch) | |
tree | af3010089a05a68dbc9a9ce0fc62d38d9cda17f0 /src | |
parent | 3dd174abbf2bf1bb4e42aa21ff78fb9b4f8b4679 (diff) |
patch 8.1.1051: not all ways to switch terminal mode are testedv8.1.1051
Problem: Not all ways to switch terminal mode are tested.
Solution: Add more test cases.
Diffstat (limited to 'src')
-rw-r--r-- | src/testdir/test_terminal.vim | 23 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index aed729ec3f..be44c14eaf 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1772,6 +1772,29 @@ func Test_terminal_hidden() bwipe! endfunc +func Test_terminal_switch_mode() + term + let bnr = bufnr('$') + call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) + call feedkeys("\<C-W>N", 'xt') + call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))}) + call feedkeys("A", 'xt') + call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) + call feedkeys("\<C-W>N", 'xt') + call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))}) + call feedkeys("I", 'xt') + call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) + call feedkeys("\<C-W>Nv", 'xt') + call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))}) + call feedkeys("I", 'xt') + call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) + call feedkeys("\<C-W>Nv", 'xt') + call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))}) + call feedkeys("A", 'xt') + call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) + bwipe! +endfunc + func Test_terminal_hidden_and_close() if !has('unix') return diff --git a/src/version.c b/src/version.c index f4496423c2..13db4015e8 100644 --- a/src/version.c +++ b/src/version.c @@ -776,6 +776,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1051, +/**/ 1050, /**/ 1049, |