comparison src/testdir/test_assert.vim @ 17049:f38fcbf343ce v8.1.1524

patch 8.1.1524: tests are silently skipped commit https://github.com/vim/vim/commit/b0f94c1ff34d27d33aa9f96204985ea29c2eb0a1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 13 22:19:53 2019 +0200 patch 8.1.1524: tests are silently skipped Problem: Tests are silently skipped. Solution: Throw an exception for skipped tests in more places.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jun 2019 22:30:07 +0200
parents fec4416adb80
children ccd21c8f916b
comparison
equal deleted inserted replaced
17048:dcbd3676e9d6 17049:f38fcbf343ce
220 call test_override('ALL', 0) 220 call test_override('ALL', 0)
221 call assert_fails("call test_override('xxx', 1)", 'E475') 221 call assert_fails("call test_override('xxx', 1)", 'E475')
222 call assert_fails("call test_override('redraw', 'yes')", 'E474') 222 call assert_fails("call test_override('redraw', 'yes')", 'E474')
223 endfunc 223 endfunc
224 224
225 func Test_mouse_position()
226 let save_mouse = &mouse
227 set mouse=a
228 new
229 call setline(1, ['line one', 'line two'])
230 call assert_equal([0, 1, 1, 0], getpos('.'))
231 call test_setmouse(1, 5)
232 call feedkeys("\<LeftMouse>", "xt")
233 call assert_equal([0, 1, 5, 0], getpos('.'))
234 call test_setmouse(2, 20)
235 call feedkeys("\<LeftMouse>", "xt")
236 call assert_equal([0, 2, 8, 0], getpos('.'))
237 call test_setmouse(5, 1)
238 call feedkeys("\<LeftMouse>", "xt")
239 call assert_equal([0, 2, 1, 0], getpos('.'))
240 bwipe!
241 let &mouse = save_mouse
242 endfunc
243
225 func Test_user_is_happy() 244 func Test_user_is_happy()
226 smile 245 smile
227 sleep 300m 246 sleep 300m
228 endfunc 247 endfunc
229 248