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/testdir | |
parent | 3dd174abbf2bf1bb4e42aa21ff78fb9b4f8b4679 (diff) | |
download | vim-git-a4c2a24cc7772d882289a617104fe968a15969d7.tar.gz |
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/testdir')
-rw-r--r-- | src/testdir/test_terminal.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index aed729ec3..be44c14ea 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 |