diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-23 02:23:35 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-23 02:29:43 -0500 |
| commit | e193dbd7e88b6eb5dd4effc4c604d62964e1883d (patch) | |
| tree | 7c72f53c1444893d8ac1091b5fe2753558358951 /src/nvim/testdir/test_digraph.vim | |
| parent | afa5a11363d76f4a51469ed87f3998d854ae56c2 (diff) | |
| download | rneovim-e193dbd7e88b6eb5dd4effc4c604d62964e1883d.tar.gz rneovim-e193dbd7e88b6eb5dd4effc4c604d62964e1883d.tar.bz2 rneovim-e193dbd7e88b6eb5dd4effc4c604d62964e1883d.zip | |
vim-patch:8.2.1025: tabpage menu and tabline not sufficiently tested
Problem: Tabpage menu and tabline not sufficiently tested.
Solution: Add tests. (Yegappan Lakshmanan, closes vim/vim#6307)
https://github.com/vim/vim/commit/8c524f76ebd43f006e765534765b595de7095f12
Cherry-pick Test_entering_digraph() from patch v8.2.1022.
Cherry-pick :CheckGui from patch v8.1.1826.
Diffstat (limited to 'src/nvim/testdir/test_digraph.vim')
| -rw-r--r-- | src/nvim/testdir/test_digraph.vim | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_digraph.vim b/src/nvim/testdir/test_digraph.vim index 9eea27740d..b6d9687560 100644 --- a/src/nvim/testdir/test_digraph.vim +++ b/src/nvim/testdir/test_digraph.vim @@ -1,8 +1,8 @@ " Tests for digraphs -if !has("digraphs") - finish -endif +source check.vim +CheckFeature digraphs +source term_util.vim func Put_Dig(chars) exe "norm! o\<c-k>".a:chars @@ -487,4 +487,20 @@ func Test_show_digraph_cp1251() bwipe! endfunc +" Test for the characters displayed on the screen when entering a digraph +func Test_entering_digraph() + CheckRunVimInTerminal + let buf = RunVimInTerminal('', {'rows': 6}) + call term_sendkeys(buf, "i\<C-K>") + call term_wait(buf) + call assert_equal('?', term_getline(buf, 1)) + call term_sendkeys(buf, "1") + call term_wait(buf) + call assert_equal('1', term_getline(buf, 1)) + call term_sendkeys(buf, "2") + call term_wait(buf) + call assert_equal('½', term_getline(buf, 1)) + call StopVimInTerminal(buf) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |