From 005316ae41a03e75fac37a4892e2b8efde2f8b57 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 11 Jun 2019 22:31:12 -0400 Subject: vim-patch:8.0.1689: no tests for xxd Problem: No tests for xxd. Solution: Add a test. (Christian Brabandt) https://github.com/vim/vim/commit/29f9ed20b42e7badea6cfb82fb1fb8d71f33e282 --- src/nvim/testdir/runtest.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim index aaddc90c99..65329b58f8 100644 --- a/src/nvim/testdir/runtest.vim +++ b/src/nvim/testdir/runtest.vim @@ -200,7 +200,11 @@ func FinishTesting() write endif - let message = 'Executed ' . s:done . (s:done > 1 ? ' tests' : ' test') + if s:done == 0 + let message = 'NO tests executed' + else + let message = 'Executed ' . s:done . (s:done > 1 ? ' tests' : ' test') + endif echo message call add(s:messages, message) if s:fail > 0 -- cgit From 22d58ab66459c4c38f7117902b9498f81b4edfe5 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 11 Jun 2019 23:16:16 -0400 Subject: vim-patch:8.1.0213: CTRL-W CR does not work properly in a quickfix window Problem: CTRL-W CR does not work properly in a quickfix window. Solution: Split the window if needed. (Jason Franklin) https://github.com/vim/vim/commit/0a08c63da17dfd93ac2885e3f3f8a083a9b3131c --- src/nvim/testdir/test_quickfix.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 16fb86ea08..fcb02d3437 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -3372,3 +3372,21 @@ func Test_lbuffer_with_bwipe() au! augroup END endfunc + +" Tests for the "CTRL-W " command. +func Xview_result_split_tests(cchar) + call s:setup_commands(a:cchar) + + " Test that "CTRL-W " in a qf/ll window fails with empty list. + call g:Xsetlist([]) + Xopen + let l:win_count = winnr('$') + call assert_fails('execute "normal! \\"', 'E42') + call assert_equal(l:win_count, winnr('$')) + Xclose +endfunc + +func Test_view_result_split() + call Xview_result_split_tests('c') + call Xview_result_split_tests('l') +endfunc -- cgit