Mercurial > vim
comparison src/testdir/test_terminal.vim @ 19417:21eefaf6bc5b v8.2.0266
patch 8.2.0266: terminal in popup test sometimes fails on Mac
Commit: https://github.com/vim/vim/commit/a28be85ccde03ee0a0dc984dfd7396c50713b593
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 16 17:04:09 2020 +0100
patch 8.2.0266: terminal in popup test sometimes fails on Mac
Problem: Terminal in popup test sometimes fails on Mac.
Solution: Add a short delay.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Feb 2020 17:15:04 +0100 |
parents | 763775897f2e |
children | b70fbf3f0e0b |
comparison
equal
deleted
inserted
replaced
19416:de54fb0ff5e5 | 19417:21eefaf6bc5b |
---|---|
2351 \ 'redraw', | 2351 \ 'redraw', |
2352 \ 'echo getwinvar(s:winid, "&buftype") win_gettype(s:winid)', | 2352 \ 'echo getwinvar(s:winid, "&buftype") win_gettype(s:winid)', |
2353 \ ] | 2353 \ ] |
2354 call writefile(lines, 'XtermPopup') | 2354 call writefile(lines, 'XtermPopup') |
2355 let buf = RunVimInTerminal('-S XtermPopup', #{rows: 15}) | 2355 let buf = RunVimInTerminal('-S XtermPopup', #{rows: 15}) |
2356 call term_wait(buf, 100) | |
2356 call term_sendkeys(buf, ":\<CR>") | 2357 call term_sendkeys(buf, ":\<CR>") |
2357 call VerifyScreenDump(buf, 'Test_terminal_popup_1', {}) | 2358 call VerifyScreenDump(buf, 'Test_terminal_popup_1', {}) |
2358 | 2359 |
2359 call term_sendkeys(buf, ":q\<CR>") | 2360 call term_sendkeys(buf, ":q\<CR>") |
2360 call VerifyScreenDump(buf, 'Test_terminal_popup_2', {}) | 2361 call VerifyScreenDump(buf, 'Test_terminal_popup_2', {}) |