diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-10-13 01:19:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-13 01:19:09 +0200 |
| commit | 5a61ff188c60a9ce6cd6bfc7bfdf5ccbd7616523 (patch) | |
| tree | 6b9eb97fbd85228675c40d0e4f096c19b9d69545 /src/nvim/testdir | |
| parent | 22fe76aec47e4e2cc9207bf6659e63741a310409 (diff) | |
| parent | 1b61bd93aeb40d8596df4d2cd3371748b5022120 (diff) | |
| download | rneovim-5a61ff188c60a9ce6cd6bfc7bfdf5ccbd7616523.tar.gz rneovim-5a61ff188c60a9ce6cd6bfc7bfdf5ccbd7616523.tar.bz2 rneovim-5a61ff188c60a9ce6cd6bfc7bfdf5ccbd7616523.zip | |
Merge #5257 from jbradaric/vim-7.4.1893
vim-patch:7.4.{1893,1895}
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_window_id.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_window_id.vim b/src/nvim/testdir/test_window_id.vim index fa3ebd757e..66656e1d0a 100644 --- a/src/nvim/testdir/test_window_id.vim +++ b/src/nvim/testdir/test_window_id.vim @@ -3,17 +3,22 @@ func Test_win_getid() edit one let id1 = win_getid() + let w:one = 'one' split two let id2 = win_getid() let bufnr2 = bufnr('%') + let w:two = 'two' split three let id3 = win_getid() + let w:three = 'three' tabnew edit four let id4 = win_getid() + let w:four = 'four' split five let id5 = win_getid() let bufnr5 = bufnr('%') + let w:five = 'five' tabnext wincmd w @@ -28,6 +33,9 @@ func Test_win_getid() call assert_equal("three", expand("%")) call assert_equal(id3, win_getid()) let nr3 = winnr() + call assert_equal('one', getwinvar(id1, 'one')) + call assert_equal('two', getwinvar(id2, 'two')) + call assert_equal('three', getwinvar(id3, 'three')) tabnext call assert_equal("five", expand("%")) call assert_equal(id5, win_getid()) @@ -36,7 +44,14 @@ func Test_win_getid() call assert_equal("four", expand("%")) call assert_equal(id4, win_getid()) let nr4 = winnr() + call assert_equal('four', getwinvar(id4, 'four')) + call assert_equal('five', getwinvar(id5, 'five')) + call settabwinvar(1, id2, 'two', '2') + call setwinvar(id4, 'four', '4') tabnext + call assert_equal('4', gettabwinvar(2, id4, 'four')) + call assert_equal('five', gettabwinvar(2, id5, 'five')) + call assert_equal('2', getwinvar(id2, 'two')) exe nr1 . "wincmd w" call assert_equal(id1, win_getid()) |