comparison src/testdir/test_bufwintabinfo.vim @ 17857:4935244c1128 v8.1.1925

patch 8.1.1925: more functions can be used as methods Commit: https://github.com/vim/vim/commit/4c313b13fb7bfa694ec6d2a13175e8650c007b2a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 24 22:58:31 2019 +0200 patch 8.1.1925: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Aug 2019 23:00:04 +0200
parents ce993ba17adb
children 9fac6d0de69a
comparison
equal deleted inserted replaced
17856:786c5c8ba565 17857:4935244c1128
86 call assert_equal(2, len(tablist)) 86 call assert_equal(2, len(tablist))
87 call assert_equal(3, len(tablist[1].windows)) 87 call assert_equal(3, len(tablist[1].windows))
88 call assert_equal(2, tablist[1].tabnr) 88 call assert_equal(2, tablist[1].tabnr)
89 call assert_equal('build', tablist[0].variables.space) 89 call assert_equal('build', tablist[0].variables.space)
90 call assert_equal(w2_id, tablist[0].windows[0]) 90 call assert_equal(w2_id, tablist[0].windows[0])
91 call assert_equal([], gettabinfo(3)) 91 call assert_equal([], 3->gettabinfo())
92 92
93 tabonly | only 93 tabonly | only
94 94
95 lexpr '' 95 lexpr ''
96 lopen 96 lopen
104 call assert_false(winlist[2].loclist) 104 call assert_false(winlist[2].loclist)
105 wincmd t | only 105 wincmd t | only
106 endfunction 106 endfunction
107 107
108 function Test_get_buf_options() 108 function Test_get_buf_options()
109 let opts = getbufvar(bufnr('%'), '&') 109 let opts = bufnr()->getbufvar('&')
110 call assert_equal(v:t_dict, type(opts)) 110 call assert_equal(v:t_dict, type(opts))
111 call assert_equal(8, opts.tabstop) 111 call assert_equal(8, opts.tabstop)
112 endfunc 112 endfunc
113 113
114 function Test_get_win_options() 114 function Test_get_win_options()