Mercurial > vim
comparison src/testdir/test_terminal.vim @ 22904:a7c1a92bd13c v8.2.1999
patch 8.2.1999: terminal popup test sometimes fails
Commit: https://github.com/vim/vim/commit/e6329e4c55cd81b6134820eab6a10b02c11c1277
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 16 21:10:34 2020 +0100
patch 8.2.1999: terminal popup test sometimes fails
Problem: Terminal popup test sometimes fails.
Solution: Wait for the popup to close.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 16 Nov 2020 21:15:04 +0100 |
parents | 1bde09eef44a |
children | 696364caabea |
comparison
equal
deleted
inserted
replaced
22903:83cc3b2e7bb6 | 22904:a7c1a92bd13c |
---|---|
1247 call setbufline(newbuf, 1, 'foobar') | 1247 call setbufline(newbuf, 1, 'foobar') |
1248 | 1248 |
1249 " must not have switched to another window | 1249 " must not have switched to another window |
1250 call assert_equal(winid, win_getid()) | 1250 call assert_equal(winid, win_getid()) |
1251 | 1251 |
1252 call feedkeys("exit\<CR>", 'xt') | 1252 call StopShellInTerminal(termbuf) |
1253 sleep 50m | 1253 call WaitFor({-> win_getid() != winid}) |
1254 exe 'bwipe! ' .. newbuf | 1254 exe 'bwipe! ' .. newbuf |
1255 endfunc | 1255 endfunc |
1256 | 1256 |
1257 func Test_terminal_popup_insert_cmd() | 1257 func Test_terminal_popup_insert_cmd() |
1258 CheckUnix | 1258 CheckUnix |