Mercurial > vim
comparison src/testdir/test_curswant.vim @ 11961:0240e7e3d736 v8.0.0861
patch 8.0.0861: still many old style tests
commit https://github.com/vim/vim/commit/4a137b45864310060410f34cb9c7d0f0231bb256
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 4 22:37:11 2017 +0200
patch 8.0.0861: still many old style tests
Problem: Still many old style tests.
Solution: Convert several tests to new style. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 04 Aug 2017 22:45:04 +0200 |
parents | |
children | 08940efa6b4e |
comparison
equal
deleted
inserted
replaced
11960:e9776f970210 | 11961:0240e7e3d736 |
---|---|
1 " Tests for curswant not changing when setting an option | |
2 | |
3 func Test_curswant() | |
4 new | |
5 call append(0, ['1234567890', '12345']) | |
6 | |
7 normal! ggf8j | |
8 call assert_equal(7, winsaveview().curswant) | |
9 let &tabstop=&tabstop | |
10 call assert_equal(4, winsaveview().curswant) | |
11 | |
12 normal! ggf8j | |
13 call assert_equal(7, winsaveview().curswant) | |
14 let &timeoutlen=&timeoutlen | |
15 call assert_equal(7, winsaveview().curswant) | |
16 | |
17 normal! ggf8j | |
18 call assert_equal(7, winsaveview().curswant) | |
19 let &ttimeoutlen=&ttimeoutlen | |
20 call assert_equal(7, winsaveview().curswant) | |
21 | |
22 enew! | |
23 endfunc |