test: Migrate legacy test 107

This test depends on terminal size to work correctly. After migration this
requirement is removed.
This commit is contained in:
Thiago de Arruda
2015-01-23 20:46:27 -03:00
parent d84cbfa4dc
commit 8a363360dc
3 changed files with 59 additions and 42 deletions

View File

@@ -1,38 +0,0 @@
Tests for adjusting window and contents vim: set ft=vim :
STARTTEST
:so small.vim
:new
:call setline(1, range(1,256))
:let r=[]
:func! GetScreenStr(row)
: let str = ""
: for c in range(1,3)
: let str .= nr2char(screenchar(a:row, c))
: endfor
: return str
:endfunc
:
:exe ":norm! \<C-W>t\<C-W>=1Gzt\<C-W>w\<C-W>+"
:let s3=GetScreenStr(1)
:wincmd p
:call add(r, [line("w0"), s3])
:
:exe ":norm! \<C-W>t\<C-W>=50Gzt\<C-W>w\<C-W>+"
:let s3=GetScreenStr(1)
:wincmd p
:call add(r, [line("w0"), s3])
:
:exe ":norm! \<C-W>t\<C-W>=59Gzt\<C-W>w\<C-W>+"
:let s3=GetScreenStr(1)
::wincmd p
:call add(r, [line("w0"), s3])
:
:bwipeout!
:$put=r
:call garbagecollect(1)
:"
:/^start:/,$wq! test.out
ENDTEST
start:

View File

@@ -1,4 +0,0 @@
start:
[1, '1 ']
[50, '50 ']
[59, '59 ']