diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-26 16:33:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-26 16:33:10 +0200 |
commit | 2b4c0181ba5a064b13f4e96e364124245e6f494c (patch) | |
tree | 5235096650cc259e01ecc1c5af2c88eaafacc0a6 /src/nvim/testdir/test_window_id.vim | |
parent | 52215f57526f27c7752685ae280865ae71105969 (diff) | |
parent | 58d6e2d3cc4c39f7a2c78a3060758bee31f831e4 (diff) | |
download | rneovim-2b4c0181ba5a064b13f4e96e364124245e6f494c.tar.gz rneovim-2b4c0181ba5a064b13f4e96e364124245e6f494c.tar.bz2 rneovim-2b4c0181ba5a064b13f4e96e364124245e6f494c.zip |
Merge #10064 from janlazo/vim-8.1.0211
vim-patch:8.1.{211,307}
Diffstat (limited to 'src/nvim/testdir/test_window_id.vim')
-rw-r--r-- | src/nvim/testdir/test_window_id.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_window_id.vim b/src/nvim/testdir/test_window_id.vim index b3b506d04d..d10d831650 100644 --- a/src/nvim/testdir/test_window_id.vim +++ b/src/nvim/testdir/test_window_id.vim @@ -101,3 +101,23 @@ func Test_win_getid_curtab() call assert_equal(win_getid(1), win_getid(1, 1)) tabclose! endfunc + +func Test_winlayout() + let w1 = win_getid() + call assert_equal(['leaf', w1], winlayout()) + + split + let w2 = win_getid() + call assert_equal(['col', [['leaf', w2], ['leaf', w1]]], winlayout()) + + split + let w3 = win_getid() + call assert_equal(['col', [['leaf', w3], ['leaf', w2], ['leaf', w1]]], winlayout()) + + 2wincmd w + vsplit + let w4 = win_getid() + call assert_equal(['col', [['leaf', w3], ['row', [['leaf', w4], ['leaf', w2]]], ['leaf', w1]]], winlayout()) + + only! +endfunc |