Mercurial > vim
comparison src/testdir/test_normal.vim @ 19738:0208534b8a84 v8.2.0425
patch 8.2.0425: code for modeless selection not sufficiently tested
Commit: https://github.com/vim/vim/commit/515545e11f523d14343b1e588dc0b9bd3d362bc2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 22 14:08:59 2020 +0100
patch 8.2.0425: code for modeless selection not sufficiently tested
Problem: Code for modeless selection not sufficiently tested.
Solution: Add tests. Move mouse code functionality to a common script file.
(Yegappan Lakshmanan, closes #5821)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 22 Mar 2020 14:15:04 +0100 |
parents | b3e93a05c3ca |
children | 12518b40c161 |
comparison
equal
deleted
inserted
replaced
19737:5591829276ff | 19738:0208534b8a84 |
---|---|
115 set keymodel= | 115 set keymodel= |
116 50 | 116 50 |
117 call feedkeys("Vkk\<Up>yy", 'tx') | 117 call feedkeys("Vkk\<Up>yy", 'tx') |
118 call assert_equal(['47', '48', '49', '50'], getreg(0, 0, 1)) | 118 call assert_equal(['47', '48', '49', '50'], getreg(0, 0, 1)) |
119 | 119 |
120 " clean up | |
121 bw! | |
122 endfunc | |
123 | |
124 " Test for select mode | |
125 func Test_normal02_selectmode() | |
126 call Setup_NewWindow() | |
127 50 | |
128 norm! gHy | |
129 call assert_equal('y51', getline('.')) | |
130 call setline(1, range(1,100)) | |
131 50 | |
132 exe ":norm! V9jo\<c-g>y" | |
133 call assert_equal('y60', getline('.')) | |
134 " clean up | |
135 bw! | |
136 endfunc | |
137 | |
138 func Test_normal02_selectmode2() | |
139 " some basic select mode tests | |
140 call Setup_NewWindow() | |
141 50 | |
142 call feedkeys(":set im\n\<c-o>gHc\<c-o>:set noim\n", 'tx') | |
143 call assert_equal('c51', getline('.')) | |
144 " clean up | 120 " clean up |
145 bw! | 121 bw! |
146 endfunc | 122 endfunc |
147 | 123 |
148 func Test_normal03_join() | 124 func Test_normal03_join() |