Mercurial > vim
changeset 17618:9695e9fed059 v8.1.1806
patch 8.1.1806: test for display updating doesn't check without statusline
commit https://github.com/vim/vim/commit/7cc535175a233c6f02cdb5a364b3590560f5bfcb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 3 23:30:21 2019 +0200
patch 8.1.1806: test for display updating doesn't check without statusline
Problem: Test for display updating doesn't check without statusline.
Solution: Add screenshots without a status line.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 03 Aug 2019 23:45:05 +0200 |
parents | 2a583a80c0bf |
children | f9976baad617 |
files | src/testdir/dumps/Test_scroll_no_region_4.dump src/testdir/dumps/Test_scroll_no_region_5.dump src/testdir/dumps/Test_scroll_no_region_6.dump src/testdir/test_display.vim src/version.c |
diffstat | 5 files changed, 43 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/src/testdir/dumps/Test_scroll_no_region_4.dump @@ -0,0 +1,10 @@ +|1+0&#ffffff0| @73 +|2| @73 +>3| @73 +|4| @73 +|5| @73 +|6| @73 +|7| @73 +|8| @73 +|9| @73 +|:|s|e|t| |l|a|s|t|s|t|a|t|u|s|=|0| @39|3|,|1| @10|T|o|p|
new file mode 100644 --- /dev/null +++ b/src/testdir/dumps/Test_scroll_no_region_5.dump @@ -0,0 +1,10 @@ +|1+0&#ffffff0| @73 +|2| @73 +>4| @73 +|5| @73 +|6| @73 +|7| @73 +|8| @73 +|9| @73 +|1|0| @72 +@57|3|,|1| @10|T|o|p|
new file mode 100644 --- /dev/null +++ b/src/testdir/dumps/Test_scroll_no_region_6.dump @@ -0,0 +1,10 @@ +|1+0&#ffffff0| @73 +|2| @73 +|4| @73 +|5| @73 +>3| @73 +|6| @73 +|7| @73 +|8| @73 +|9| @73 +@57|5|,|1| @10|T|o|p|
--- a/src/testdir/test_display.vim +++ b/src/testdir/test_display.vim @@ -88,6 +88,17 @@ func Test_scroll_without_region() call term_sendkeys(buf, ":4put\<cr>") call VerifyScreenDump(buf, 'Test_scroll_no_region_3', {}) + call term_sendkeys(buf, ":undo\<cr>") + call term_sendkeys(buf, ":undo\<cr>") + call term_sendkeys(buf, ":set laststatus=0\<cr>") + call VerifyScreenDump(buf, 'Test_scroll_no_region_4', {}) + + call term_sendkeys(buf, ":3delete\<cr>") + call VerifyScreenDump(buf, 'Test_scroll_no_region_5', {}) + + call term_sendkeys(buf, ":4put\<cr>") + call VerifyScreenDump(buf, 'Test_scroll_no_region_6', {}) + " clean up call StopVimInTerminal(buf) call delete('Xtestscroll')