diff options
| author | Daniel Hahler <git@thequod.de> | 2019-08-12 15:33:22 +0200 |
|---|---|---|
| committer | Daniel Hahler <git@thequod.de> | 2019-08-13 22:15:54 +0200 |
| commit | 4e6c59643100cf775ff65b7da67e23620ff247f8 (patch) | |
| tree | 3703b6417a9cfe6b5f40a2d4878580a96566928a /src/nvim/testdir/test_popup.vim | |
| parent | 947bd293c98eda680c0e89b2d453b91eeda54272 (diff) | |
| download | rneovim-4e6c59643100cf775ff65b7da67e23620ff247f8.tar.gz rneovim-4e6c59643100cf775ff65b7da67e23620ff247f8.tar.bz2 rneovim-4e6c59643100cf775ff65b7da67e23620ff247f8.zip | |
vim-patch:8.0.1179: Test_popup_and_window_resize() does not always pass
Problem: Test_popup_and_window_resize() does not always pass.
Solution: Do not use $VIMPROG, pass the Vim executable in the vimcmd file.
(Ozaki Kiichi, closes vim/vim#2186)
https://github.com/vim/vim/commit/631820536e4084e01bf990f9314ec385b60b21d7
vim-patch:8.0.1526: no test using a screen dump yet
Problem: No test using a screen dump yet.
Solution: Add a test for C syntax highlighting. Add helper functions.
https://github.com/vim/vim/commit/da65058a9c4774dc534c7ae98d24c58b5db669fa
NOTE: uses modified `GetVimProg()` (which is used with skipped tests only
(mostly because of `!has('terminal')`)).
Vim uses a 'vimcmd' file, while Nvim uses `$NVIM_TEST_ARGX` environment
variables.
Ref: https://github.com/vim/vim/pull/4806
Diffstat (limited to 'src/nvim/testdir/test_popup.vim')
| -rw-r--r-- | src/nvim/testdir/test_popup.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim index 7d844e055c..0027a0a52e 100644 --- a/src/nvim/testdir/test_popup.vim +++ b/src/nvim/testdir/test_popup.vim @@ -669,10 +669,10 @@ func Test_popup_and_window_resize() if h < 15 return endif - let g:buf = term_start([$NVIM_PRG, '--clean', '-c', 'set noswapfile'], {'term_rows': h / 3}) - call term_sendkeys(g:buf, (h / 3 - 1)."o\<esc>G") - call term_sendkeys(g:buf, "i\<c-x>") + let g:buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], {'term_rows': h / 3}) + call term_sendkeys(g:buf, (h / 3 - 1)."o\<esc>") call term_wait(g:buf, 200) + call term_sendkeys(g:buf, "Gi\<c-x>") call term_sendkeys(g:buf, "\<c-v>") call term_wait(g:buf, 100) " popup first entry "!" must be at the top |