Mercurial > vim
view src/testdir/test_scroll_opt.vim @ 29369:b1f345ec827e v9.0.0027
patch 9.0.0027: the command line test is getting quite big
Commit: https://github.com/vim/vim/commit/2d2950198231a31bf87c1cd4322099cc36b0bb93
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 2 16:29:34 2022 +0100
patch 9.0.0027: the command line test is getting quite big
Problem: The command line test is getting quite big.
Solution: Move command line window tests to a separate file.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Jul 2022 17:30:02 +0200 |
parents | 08940efa6b4e |
children | 6c6ac189a05f |
line wrap: on
line source
" Test for reset 'scroll' func Test_reset_scroll() let scr = &l:scroll setlocal scroll=1 setlocal scroll& call assert_equal(scr, &l:scroll) setlocal scroll=1 setlocal scroll=0 call assert_equal(scr, &l:scroll) try execute 'setlocal scroll=' . (winheight(0) + 1) " not reached call assert_false(1) catch call assert_exception('E49:') endtry split let scr = &l:scroll setlocal scroll=1 setlocal scroll& call assert_equal(scr, &l:scroll) setlocal scroll=1 setlocal scroll=0 call assert_equal(scr, &l:scroll) quit! endfunc " vim: shiftwidth=2 sts=2 expandtab