Mercurial > vim
comparison src/testdir/test_terminal.vim @ 16093:3da6df816d8a v8.1.1051
patch 8.1.1051: not all ways to switch terminal mode are tested
commit https://github.com/vim/vim/commit/a4c2a24cc7772d882289a617104fe968a15969d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 25 23:01:38 2019 +0100
patch 8.1.1051: not all ways to switch terminal mode are tested
Problem: Not all ways to switch terminal mode are tested.
Solution: Add more test cases.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Mar 2019 23:15:04 +0100 |
parents | 2c18aaf66e77 |
children | 59177d9466aa |
comparison
equal
deleted
inserted
replaced
16092:c18ba30d4097 | 16093:3da6df816d8a |
---|---|
1770 call term_sendkeys(bnr, "\<C-D>") | 1770 call term_sendkeys(bnr, "\<C-D>") |
1771 call WaitForAssert({-> assert_equal('finished', term_getstatus(bnr))}) | 1771 call WaitForAssert({-> assert_equal('finished', term_getstatus(bnr))}) |
1772 bwipe! | 1772 bwipe! |
1773 endfunc | 1773 endfunc |
1774 | 1774 |
1775 func Test_terminal_switch_mode() | |
1776 term | |
1777 let bnr = bufnr('$') | |
1778 call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) | |
1779 call feedkeys("\<C-W>N", 'xt') | |
1780 call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))}) | |
1781 call feedkeys("A", 'xt') | |
1782 call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) | |
1783 call feedkeys("\<C-W>N", 'xt') | |
1784 call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))}) | |
1785 call feedkeys("I", 'xt') | |
1786 call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) | |
1787 call feedkeys("\<C-W>Nv", 'xt') | |
1788 call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))}) | |
1789 call feedkeys("I", 'xt') | |
1790 call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) | |
1791 call feedkeys("\<C-W>Nv", 'xt') | |
1792 call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))}) | |
1793 call feedkeys("A", 'xt') | |
1794 call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) | |
1795 bwipe! | |
1796 endfunc | |
1797 | |
1775 func Test_terminal_hidden_and_close() | 1798 func Test_terminal_hidden_and_close() |
1776 if !has('unix') | 1799 if !has('unix') |
1777 return | 1800 return |
1778 endif | 1801 endif |
1779 call assert_equal(1, winnr('$')) | 1802 call assert_equal(1, winnr('$')) |