diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-01-21 20:50:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-21 20:50:46 +0800 |
| commit | 0f52e2c849cbd923fc30b8bbef088b6f7642aeab (patch) | |
| tree | 42533e601b3b4d9a4d49c229ef6f6ae174f89716 /src/nvim/testdir/test_ins_complete.vim | |
| parent | fb805bb8b791b0266072b2415651cb54020d5098 (diff) | |
| download | rneovim-0f52e2c849cbd923fc30b8bbef088b6f7642aeab.tar.gz rneovim-0f52e2c849cbd923fc30b8bbef088b6f7642aeab.tar.bz2 rneovim-0f52e2c849cbd923fc30b8bbef088b6f7642aeab.zip | |
vim-patch:8.2.0382: some tests fail when run under valgrind (#21936)
Problem: Some tests fail when run under valgrind.
Solution: Increase timeouts.
https://github.com/vim/vim/commit/353c351bd22e4dac4c3ae9cd7731032348f248c4
Cherry-pick Test_pum_with_preview_win() from patch 8.2.0011.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir/test_ins_complete.vim')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index 7a9392545e..ec1379a378 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -581,6 +581,33 @@ func Test_pum_with_folds_two_tabs() call delete('Xpumscript') endfunc +func Test_pum_with_preview_win() + CheckScreendump + + let lines =<< trim END + funct Omni_test(findstart, base) + if a:findstart + return col(".") - 1 + endif + return [#{word: "one", info: "1info"}, #{word: "two", info: "2info"}, #{word: "three", info: "3info"}] + endfunc + set omnifunc=Omni_test + set completeopt+=longest + END + + call writefile(lines, 'Xpreviewscript') + let buf = RunVimInTerminal('-S Xpreviewscript', #{rows: 12}) + call term_wait(buf, 100) + call term_sendkeys(buf, "Gi\<C-X>\<C-O>") + call term_wait(buf, 200) + call term_sendkeys(buf, "\<C-N>") + call VerifyScreenDump(buf, 'Test_pum_with_preview_win', {}) + + call term_sendkeys(buf, "\<Esc>") + call StopVimInTerminal(buf) + call delete('Xpreviewscript') +endfunc + " Test for inserting the tag search pattern in insert mode func Test_ins_compl_tag_sft() call writefile([ |