comparison src/testdir/test_terminal.vim @ 18037:6a7b778119f1 v8.1.2014

patch 8.1.2014: terminal altscreen test fails sometimes Commit: https://github.com/vim/vim/commit/b9c79cf5cc876ba4d46d938ad4a15800dbe45e64 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 8 22:09:52 2019 +0200 patch 8.1.2014: terminal altscreen test fails sometimes Problem: Terminal altscreen test fails sometimes. Solution: Use WaitFor().
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Sep 2019 22:15:04 +0200
parents 049a7481d737
children ef5720fb6f41
comparison
equal deleted inserted replaced
18036:8b9e77aa11c2 18037:6a7b778119f1
2091 CheckUnix 2091 CheckUnix
2092 2092
2093 let buf = term_start(&shell, {}) 2093 let buf = term_start(&shell, {})
2094 2094
2095 call term_sendkeys(buf, 'echo "\e[?1047h"' .. "\r") 2095 call term_sendkeys(buf, 'echo "\e[?1047h"' .. "\r")
2096 call term_wait(buf) 2096 call WaitForAssert({-> assert_equal(1, term_getaltscreen(buf))})
2097 call assert_equal(1, term_getaltscreen(buf)) 2097
2098 call term_sendkeys(buf, 'echo "\e[?1047l"' .. "\r") 2098 call term_sendkeys(buf, 'echo "\e[?1047l"' .. "\r")
2099 call term_wait(buf) 2099 call WaitForAssert({-> assert_equal(0, term_getaltscreen(buf))})
2100 call assert_equal(0, buf->term_getaltscreen())
2101 2100
2102 call term_sendkeys(buf, "exit\r") 2101 call term_sendkeys(buf, "exit\r")
2103 exe buf . "bwipe!" 2102 exe buf . "bwipe!"
2104 endfunc 2103 endfunc