Merge pull request #317 from macvim-dev/fix/workaround_timer

Workaround fix: Relax timer in tests
This commit is contained in:
Kazuki Sakamoto
2016-08-08 22:14:56 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ if has('timers')
let g:triggered = 0
au CursorHoldI * let g:triggered += 1
set updatetime=20
call timer_start(100, 'ExitInsertMode')
call timer_start(200, 'ExitInsertMode')
call feedkeys('a', 'x!')
call assert_equal(1, g:triggered)
au! CursorHoldI
@@ -26,7 +26,7 @@ if has('timers')
let g:triggered = 0
au CursorHoldI * let g:triggered += 1
set updatetime=20
call timer_start(100, 'ExitInsertMode')
call timer_start(200, 'ExitInsertMode')
" CursorHoldI does not trigger after CTRL-X
call feedkeys("a\<C-X>", 'x!')
call assert_equal(0, g:triggered)
+1 -1
View File
@@ -39,7 +39,7 @@ function! Test_lambda_with_timer()
call timer_stop(s:timer_id)
call assert_true(m > 1)
call assert_true(s:n > m + 1)
call assert_true(s:n < 9)
call assert_true(s:n < 10)
endfunction
function! Test_lambda_with_partial()