mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
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:
@@ -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:
|
@@ -1,4 +0,0 @@
|
||||
start:
|
||||
[1, '1 ']
|
||||
[50, '50 ']
|
||||
[59, '59 ']
|
Reference in New Issue
Block a user