comparison src/testdir/test_terminal.vim @ 15836:fe7e94f39e7f v8.1.0925

patch 8.1.0925: terminal scrollback test still still flaky commit https://github.com/vim/vim/commit/5ff7df509ad6bde89991d38d87a6fc796b862ba7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 15 01:06:13 2019 +0100 patch 8.1.0925: terminal scrollback test still still flaky Problem: Terminal scrollback test still still flaky. Solution: Explicitly set the shell. Disable ruler. (Ozaki Kiichi, closes #3966)
author Bram Moolenaar <Bram@vim.org>
date Fri, 15 Feb 2019 01:15:04 +0100
parents 8f4948be3860
children b2423b31266f
comparison
equal deleted inserted replaced
15835:1ca879393123 15836:fe7e94f39e7f
308 return 308 return
309 endif 309 endif
310 310
311 call writefile(range(50), 'Xtext') 311 call writefile(range(50), 'Xtext')
312 call writefile([ 312 call writefile([
313 \ 'set shell=/bin/sh noruler',
313 \ 'terminal', 314 \ 'terminal',
314 \ 'sleep 400m', 315 \ 'sleep 200m',
315 \ 'call feedkeys("tail -n 100 -f Xtext\<CR>", "xt")', 316 \ 'call feedkeys("tail -n 100 -f Xtext\<CR>", "xt")',
316 \ 'sleep 200m', 317 \ 'sleep 100m',
317 \ 'call feedkeys("\<C-W>N", "xt")', 318 \ 'call feedkeys("\<C-W>N", "xt")',
318 \ ], 'XTest_postponed') 319 \ ], 'XTest_postponed')
319 let buf = RunVimInTerminal('-S XTest_postponed', {}) 320 let buf = RunVimInTerminal('-S XTest_postponed', {})
320 " Check that the Xtext lines are displayed and in Terminal-Normal mode 321 " Check that the Xtext lines are displayed and in Terminal-Normal mode
321 call term_wait(buf)
322 call VerifyScreenDump(buf, 'Test_terminal_01', {}) 322 call VerifyScreenDump(buf, 'Test_terminal_01', {})
323 323
324 silent !echo 'one more line' >>Xtext 324 silent !echo 'one more line' >>Xtext
325 " Sceen will not change, move cursor to get a different dump 325 " Sceen will not change, move cursor to get a different dump
326 call term_sendkeys(buf, "k") 326 call term_sendkeys(buf, "k")
327 call term_wait(buf)
328 call VerifyScreenDump(buf, 'Test_terminal_02', {}) 327 call VerifyScreenDump(buf, 'Test_terminal_02', {})
329 328
330 " Back to Terminal-Job mode, text will scroll and show the extra line. 329 " Back to Terminal-Job mode, text will scroll and show the extra line.
331 call term_sendkeys(buf, "a") 330 call term_sendkeys(buf, "a")
332 call term_wait(buf)
333 call VerifyScreenDump(buf, 'Test_terminal_03', {}) 331 call VerifyScreenDump(buf, 'Test_terminal_03', {})
334 332
335 call term_wait(buf) 333 call term_wait(buf)
336 call term_sendkeys(buf, "\<C-C>") 334 call term_sendkeys(buf, "\<C-C>")
337 call term_wait(buf) 335 call term_wait(buf)