comparison src/testdir/test_terminal.vim @ 12431:4ae1485b5834 v8.0.1095

patch 8.0.1095: terminal multibyte escrape test is flaky commit https://github.com/vim/vim/commit/a038cb5eab24a9c395861694d9b8f610ec0ccb61 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 11 20:45:23 2017 +0200 patch 8.0.1095: terminal multibyte escrape test is flaky Problem: Terminal multibyte escrape test is flaky. Solution: Add another condition to wait for.
author Christian Brabandt <cb@256bit.org>
date Mon, 11 Sep 2017 21:00:04 +0200
parents cd66083e371e
children dfb8254aa735
comparison
equal deleted inserted replaced
12430:c314b7cde144 12431:4ae1485b5834
195 else 195 else
196 let g:buf = term_start("cat Xtext") 196 let g:buf = term_start("cat Xtext")
197 let g:line = 1 197 let g:line = 1
198 endif 198 endif
199 199
200 call WaitFor('term_scrape(g:buf, g:line)[0].chars == "l"') 200 call WaitFor('len(term_scrape(g:buf, g:line)) >= 7 && term_scrape(g:buf, g:line)[0].chars == "l"')
201 let l = term_scrape(g:buf, g:line) 201 let l = term_scrape(g:buf, g:line)
202 call assert_true(len(l) >= 7) 202 call assert_true(len(l) >= 7)
203 call assert_equal('l', l[0].chars) 203 call assert_equal('l', l[0].chars)
204 call assert_equal('é', l[1].chars) 204 call assert_equal('é', l[1].chars)
205 call assert_equal(1, l[1].width) 205 call assert_equal(1, l[1].width)