Mercurial > vim
comparison src/testdir/test_timers.vim @ 15669:d2ec272ae777 v8.1.0842
patch 8.1.0842: getchar_zero test fails on MS-Windows
commit https://github.com/vim/vim/commit/cb908a813cebf7fb4608ff43fc3d258cf2768809
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 28 23:20:04 2019 +0100
patch 8.1.0842: getchar_zero test fails on MS-Windows
Problem: getchar_zero test fails on MS-Windows.
Solution: Disable the test for now.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 28 Jan 2019 23:30:05 +0100 |
parents | 31367ce5aac7 |
children | 2973d8252740 |
comparison
equal
deleted
inserted
replaced
15668:125147ceb8d5 | 15669:d2ec272ae777 |
---|---|
249 call assert_equal(char2nr('a'), c) | 249 call assert_equal(char2nr('a'), c) |
250 call timer_stop(intr) | 250 call timer_stop(intr) |
251 endfunc | 251 endfunc |
252 | 252 |
253 func Test_getchar_zero() | 253 func Test_getchar_zero() |
254 call timer_start(20, {id -> feedkeys('x', 'L')}) | 254 if has('win32') |
255 " Console: no low-level input | |
256 " GUI: somehow doesn't work | |
257 return | |
258 endif | |
259 | |
260 let id = timer_start(20, {id -> feedkeys('x', 'L')}) | |
255 let c = 0 | 261 let c = 0 |
256 while c == 0 | 262 while c == 0 |
257 let c = getchar(0) | 263 let c = getchar(0) |
258 sleep 10m | 264 sleep 10m |
259 endwhile | 265 endwhile |
260 call assert_equal('x', nr2char(c)) | 266 call assert_equal('x', nr2char(c)) |
267 call timer_stop(id) | |
261 endfunc | 268 endfunc |
262 | 269 |
263 func Test_ex_mode() | 270 func Test_ex_mode() |
264 " Function with an empty line. | 271 " Function with an empty line. |
265 func Foo(...) | 272 func Foo(...) |
266 | 273 |
267 endfunc | 274 endfunc |
268 let timer = timer_start(40, function('g:Foo'), {'repeat':-1}) | 275 let timer = timer_start(40, function('g:Foo'), {'repeat':-1}) |
269 " This used to throw error E749. | 276 " This used to throw error E749. |
270 exe "normal Qsleep 100m\rvi\r" | 277 exe "normal Qsleep 100m\rvi\r" |
271 call timer_stop(timer) | 278 call timer_stop(timer) |
272 endfunc | 279 endfunc |
273 | 280 |