Mercurial > vim
comparison src/testdir/test_messages.vim @ 19754:c9cc9e5c87e0 v8.2.0433
patch 8.2.0433: INT signal not properly tested
Commit: https://github.com/vim/vim/commit/bad8804cdd739a5a7321b8411ad7fd4f45741b54
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 23 20:54:32 2020 +0100
patch 8.2.0433: INT signal not properly tested
Problem: INT signal not properly tested.
Solution: Add a test. Also clean up some unnecessary lines. (Dominique
Pelle, closes #5828)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 23 Mar 2020 21:00:04 +0100 |
parents | 25cb7ab433c6 |
children | c087099e9163 |
comparison
equal
deleted
inserted
replaced
19753:cf2885e38afd | 19754:c9cc9e5c87e0 |
---|---|
263 | 263 |
264 " Stop command output with q, <Esc> or CTRL-C. | 264 " Stop command output with q, <Esc> or CTRL-C. |
265 call term_sendkeys(buf, 'q') | 265 call term_sendkeys(buf, 'q') |
266 call WaitForAssert({-> assert_equal('100', term_getline(buf, 5))}) | 266 call WaitForAssert({-> assert_equal('100', term_getline(buf, 5))}) |
267 | 267 |
268 call term_sendkeys(buf, ":q!\n") | |
269 call StopVimInTerminal(buf) | 268 call StopVimInTerminal(buf) |
270 endfunc | 269 endfunc |
271 | 270 |
272 func Test_ask_yesno() | 271 func Test_ask_yesno() |
273 if !CanRunVimInTerminal() | 272 if !CanRunVimInTerminal() |
293 call term_sendkeys(buf, "y") | 292 call term_sendkeys(buf, "y") |
294 call WaitForAssert({-> assert_match('^Backwards range given, OK to swap (y/n)?y *2,1 *All$', term_getline(buf, 6))}) | 293 call WaitForAssert({-> assert_match('^Backwards range given, OK to swap (y/n)?y *2,1 *All$', term_getline(buf, 6))}) |
295 call WaitForAssert({-> assert_equal('y1', term_getline(buf, 1))}) | 294 call WaitForAssert({-> assert_equal('y1', term_getline(buf, 1))}) |
296 call WaitForAssert({-> assert_equal('y2', term_getline(buf, 2))}) | 295 call WaitForAssert({-> assert_equal('y2', term_getline(buf, 2))}) |
297 | 296 |
298 call term_sendkeys(buf, ":q!\n") | |
299 call StopVimInTerminal(buf) | 297 call StopVimInTerminal(buf) |
300 endfunc | 298 endfunc |
301 | 299 |
302 func Test_null() | 300 func Test_null() |
303 echom test_null_list() | 301 echom test_null_list() |