comparison src/testdir/test_terminal.vim @ 13678:39fcaaa973db v8.0.1711

patch 8.0.1711: term_setsize() is not implemented yet commit https://github.com/vim/vim/commit/a42d363bac8a581afe769c370db70cf833767c41 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 14 17:05:38 2018 +0200 patch 8.0.1711: term_setsize() is not implemented yet Problem: Term_setsize() is not implemented yet. Solution: Implement it.
author Christian Brabandt <cb@256bit.org>
date Sat, 14 Apr 2018 17:15:05 +0200
parents 87ffb7f85b28
children 1651a4c5c27a
comparison
equal deleted inserted replaced
13677:4efb4683ea71 13678:39fcaaa973db
284 bwipe! 284 bwipe!
285 call assert_equal(6, size[0]) 285 call assert_equal(6, size[0])
286 286
287 vsplit 287 vsplit
288 exe 'terminal ++rows=5 ++cols=33 ' . cmd 288 exe 'terminal ++rows=5 ++cols=33 ' . cmd
289 let size = term_getsize('') 289 call assert_equal([5, 33], term_getsize(''))
290 bwipe! 290
291 call assert_equal([5, 33], size) 291 call term_setsize('', 6, 0)
292 call assert_equal([6, 33], term_getsize(''))
293
294 call term_setsize('', 0, 35)
295 call assert_equal([6, 35], term_getsize(''))
296
297 call term_setsize('', 7, 30)
298 call assert_equal([7, 30], term_getsize(''))
299
300 bwipe!
292 301
293 call term_start(cmd, {'term_rows': 6, 'term_cols': 36}) 302 call term_start(cmd, {'term_rows': 6, 'term_cols': 36})
294 let size = term_getsize('') 303 let size = term_getsize('')
295 bwipe! 304 bwipe!
296 call assert_equal([6, 36], size) 305 call assert_equal([6, 36], size)