Mercurial > vim
comparison src/testdir/test_terminal.vim @ 19752:0927df746554 v8.2.0432
patch 8.2.0432: a few tests fail in a huge terminal
Commit: https://github.com/vim/vim/commit/ab505b1a4868b3e21356f95a275537551700c955
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 23 19:28:44 2020 +0100
patch 8.2.0432: a few tests fail in a huge terminal
Problem: A few tests fail in a huge terminal.
Solution: Make the tests pass. (Dominique Pelle, closes https://github.com/vim/vim/issues/5829)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 23 Mar 2020 19:30:06 +0100 |
parents | a653d1a165ef |
children | ed157b5edad0 |
comparison
equal
deleted
inserted
replaced
19751:4bed205e29d9 | 19752:0927df746554 |
---|---|
671 let len = 1 | 671 let len = 1 |
672 else | 672 else |
673 let len = 5000 | 673 let len = 5000 |
674 endif | 674 endif |
675 | 675 |
676 for c in ['a','b','c','d','e','f','g','h','i','j','k'] | 676 for c in split('abcdefghijklmnopqrstuvwxyz', '\zs') |
677 call term_sendkeys(buf, 'echo ' . repeat(c, len) . "\<cr>") | 677 call term_sendkeys(buf, 'echo ' . repeat(c, len) . "\<cr>") |
678 endfor | 678 endfor |
679 call term_sendkeys(buf, "echo done\<cr>") | 679 call term_sendkeys(buf, "echo done\<cr>") |
680 | 680 |
681 " On MS-Windows there is an extra empty line below "done". Find "done" in | 681 " On MS-Windows there is an extra empty line below "done". Find "done" in |
2493 call popup_close(win_getid()) | 2493 call popup_close(win_getid()) |
2494 endfunc | 2494 endfunc |
2495 func TermExit(...) | 2495 func TermExit(...) |
2496 call term_sendkeys(bufnr('#'), "exit\<CR>") | 2496 call term_sendkeys(bufnr('#'), "exit\<CR>") |
2497 call popup_close(win_getid()) | 2497 call popup_close(win_getid()) |
2498 endfu | 2498 endfunc |
2499 call OpenTerms() | 2499 call OpenTerms() |
2500 | 2500 |
2501 call term_sendkeys(g:buf0, "exit\<CR>") | 2501 call term_sendkeys(g:buf0, "exit\<CR>") |
2502 sleep 100m | 2502 sleep 100m |
2503 exe g:buf0 .. 'bwipe!' | 2503 exe g:buf0 .. 'bwipe!' |
2504 set hidden& | 2504 set hidden& |
2505 endfunc | 2505 endfunc |
2506 |