comparison src/testdir/test_terminal.vim @ 13692:2dd14253ad12 v8.0.1718

patch 8.0.1718: terminal scrollback test fails on MS-Windows commit https://github.com/vim/vim/commit/6c672194cd06fb1ab1289475aad31a9769bdb2ad Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 15 13:28:42 2018 +0200 patch 8.0.1718: terminal scrollback test fails on MS-Windows Problem: Terminal scrollback test fails on MS-Windows. Solution: Check for the last line of output anticipating there might be an empty line below it.
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Apr 2018 13:30:06 +0200
parents f07e48d6650b
children 404b89cb1e2a
comparison
equal deleted inserted replaced
13691:a0ee57b04deb 13692:2dd14253ad12
279 call term_sendkeys(buf, "type Xtext\<CR>") 279 call term_sendkeys(buf, "type Xtext\<CR>")
280 else 280 else
281 call term_sendkeys(buf, "cat Xtext\<CR>") 281 call term_sendkeys(buf, "cat Xtext\<CR>")
282 endif 282 endif
283 let rows = term_getsize(buf)[0] 283 let rows = term_getsize(buf)[0]
284 call WaitFor({-> term_getline(buf, rows - 1) =~ '149'}) 284 " On MS-Windows there is an empty line, check both last line and above it.
285 call WaitFor({-> term_getline(buf, rows - 1) . term_getline(buf, rows - 2) =~ '149'})
285 let lines = line('$') 286 let lines = line('$')
286 call assert_inrange(91, 100, lines) 287 call assert_inrange(91, 100, lines)
287 288
288 call Stop_shell_in_terminal(buf) 289 call Stop_shell_in_terminal(buf)
289 call term_wait(buf) 290 call term_wait(buf)