comparison src/testdir/test_messages.vim @ 28105:7824e49e5f51 v8.2.4577

patch 8.2.4577: message test is flaky Commit: https://github.com/vim/vim/commit/9323ca51c2b1522f26907a7b8879067245ebd1be Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 16 11:14:57 2022 +0000 patch 8.2.4577: message test is flaky Problem: Message test is flaky. (Elimar Riesebieter) Solution: Trigger the autocommand event only after startup is finished.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Mar 2022 12:30:03 +0100
parents 44e82999b4e1
children 7a2569ab418e
comparison
equal deleted inserted replaced
28104:4ba45e56ac83 28105:7824e49e5f51
358 call setline(1, "hi") 358 call setline(1, "hi")
359 setlocal modified 359 setlocal modified
360 360
361 hide buffer a.txt 361 hide buffer a.txt
362 362
363 set updatetime=1 363 autocmd CursorHold * buf b.txt | w | echo "'b' written"
364 autocmd CursorHold * b b.txt | w | echo "'b' written"
365 END 364 END
366 365
367 call writefile(content, 'Xtest_fileinfo_after_echo') 366 call writefile(content, 'Xtest_fileinfo_after_echo')
368 let buf = RunVimInTerminal('-S Xtest_fileinfo_after_echo', #{rows: 6}) 367 let buf = RunVimInTerminal('-S Xtest_fileinfo_after_echo', #{rows: 6})
368 call term_sendkeys(buf, ":set updatetime=50\<CR>")
369 call term_sendkeys(buf, "0$")
369 call VerifyScreenDump(buf, 'Test_fileinfo_after_echo', {}) 370 call VerifyScreenDump(buf, 'Test_fileinfo_after_echo', {})
370 371
371 call term_sendkeys(buf, ":q\<CR>") 372 call term_sendkeys(buf, ":q\<CR>")
372 373
373 " clean up 374 " clean up