comparison src/testdir/test_partial.vim @ 8865:be36707a661a v7.4.1720

commit https://github.com/vim/vim/commit/9e4043757cd2fc18d071fdd98abf297d74878943 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 8 17:25:19 2016 +0200 patch 7.4.1720 Problem: Tests fail without the job feature. Solution: Skip tests when the job feature is not present.
author Christian Brabandt <cb@256bit.org>
date Fri, 08 Apr 2016 17:30:06 +0200
parents e1b84109506a
children 2242a5766417
comparison
equal deleted inserted replaced
8864:55416dd20a16 8865:be36707a661a
241 241
242 func Ignored(job1, job2, status) 242 func Ignored(job1, job2, status)
243 endfunc 243 endfunc
244 244
245 func Test_cycle_partial_job() 245 func Test_cycle_partial_job()
246 let job = job_start('echo') 246 if has('job')
247 call job_setoptions(job, {'exit_cb': function('Ignored', [job])}) 247 let job = job_start('echo')
248 unlet job 248 call job_setoptions(job, {'exit_cb': function('Ignored', [job])})
249 unlet job
250 endif
249 endfunc 251 endfunc
250 252
251 func Test_ref_job_partial_dict() 253 func Test_ref_job_partial_dict()
252 let g:ref_job = job_start('echo') 254 if has('job')
253 let d = {'a': 'b'} 255 let g:ref_job = job_start('echo')
254 call job_setoptions(g:ref_job, {'exit_cb': function('string', [], d)}) 256 let d = {'a': 'b'}
255 endfunc 257 call job_setoptions(g:ref_job, {'exit_cb': function('string', [], d)})
258 endif
259 endfunc