Mercurial > vim
comparison src/testdir/test_normal.vim @ 27400:722db0819111 v8.2.4228
patch 8.2.4228: no tests for clicking in the GUI tabline
Commit: https://github.com/vim/vim/commit/b0ad2d92fd19e673ddbbc66742bae3f71778efde
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Jan 27 13:16:59 2022 +0000
patch 8.2.4228: no tests for clicking in the GUI tabline
Problem: No tests for clicking in the GUI tabline.
Solution: Add test functions to generate the events. Add tests using the
functions. (Yegappan Lakshmanan, closes #9638)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 27 Jan 2022 14:30:04 +0100 |
parents | 85b4bd8f8e5d |
children | 4c16acb2525f |
comparison
equal
deleted
inserted
replaced
27399:53c64ca1c4f3 | 27400:722db0819111 |
---|---|
889 | 889 |
890 " Test for errors with z command | 890 " Test for errors with z command |
891 func Test_normal_z_error() | 891 func Test_normal_z_error() |
892 call assert_beeps('normal! z2p') | 892 call assert_beeps('normal! z2p') |
893 call assert_beeps('normal! zq') | 893 call assert_beeps('normal! zq') |
894 call assert_beeps('normal! cz1') | |
894 endfunc | 895 endfunc |
895 | 896 |
896 func Test_normal15_z_scroll_vert() | 897 func Test_normal15_z_scroll_vert() |
897 " basic test for z commands that scroll the window | 898 " basic test for z commands that scroll the window |
898 call Setup_NewWindow() | 899 call Setup_NewWindow() |
928 | 929 |
929 " Test for z{height}<cr> | 930 " Test for z{height}<cr> |
930 call assert_equal(10, winheight(0)) | 931 call assert_equal(10, winheight(0)) |
931 exe "norm! z12\<cr>" | 932 exe "norm! z12\<cr>" |
932 call assert_equal(12, winheight(0)) | 933 call assert_equal(12, winheight(0)) |
933 exe "norm! z10\<cr>" | 934 exe "norm! z15\<Del>0\<cr>" |
934 call assert_equal(10, winheight(0)) | 935 call assert_equal(10, winheight(0)) |
935 | 936 |
936 " Test for z. | 937 " Test for z. |
937 1 | 938 1 |
938 21 | 939 21 |