Mercurial > vim
comparison src/testdir/test_channel.vim @ 9266:78fc4c84476e v7.4.1916
commit https://github.com/vim/vim/commit/b8aefa46adf5e825118716e142fab7ef32076475
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 10 23:02:56 2016 +0200
patch 7.4.1916
Problem: No proper test for what 7.4.1906 fixes.
Solution: Add a test for reading many lines.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 10 Jun 2016 23:15:05 +0200 |
parents | 7d13d180a6ae |
children | 2465b6cda394 |
comparison
equal
deleted
inserted
replaced
9265:2d3262d0362c | 9266:78fc4c84476e |
---|---|
1333 let g:a = job_start(['ls']) | 1333 let g:a = job_start(['ls']) |
1334 sleep 10m | 1334 sleep 10m |
1335 call test_garbagecollect_now() | 1335 call test_garbagecollect_now() |
1336 endfunc | 1336 endfunc |
1337 | 1337 |
1338 func Test_collapse_buffers() | |
1339 if !executable('cat') | |
1340 return | |
1341 endif | |
1342 sp test_channel.vim | |
1343 let g:linecount = line('$') | |
1344 close | |
1345 split testout | |
1346 1,$delete | |
1347 call job_start('cat test_channel.vim', {'out_io': 'buffer', 'out_name': 'testout'}) | |
1348 call s:waitFor('line("$") > g:linecount') | |
1349 call assert_true(line('$') > g:linecount) | |
1350 bwipe! | |
1351 endfunc | |
1338 | 1352 |
1339 | 1353 |
1340 " Uncomment this to see what happens, output is in src/testdir/channellog. | 1354 " Uncomment this to see what happens, output is in src/testdir/channellog. |
1341 " call ch_logfile('channellog', 'w') | 1355 " call ch_logfile('channellog', 'w') |