comparison src/testdir/test_popupwin.vim @ 20974:769f5a2d0879 v8.2.1038

patch 8.2.1038: popupwin test fails Commit: https://github.com/vim/vim/commit/b2b218d89b3a6f450e65afd5e59ac234a5fa1eb7 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 22 20:22:19 2020 +0200 patch 8.2.1038: popupwin test fails Problem: Popupwin test fails. Solution: Fix WaitForAssert() argument.
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Jun 2020 20:30:03 +0200
parents 736d6e6f55f6
children 6c634e63989c
comparison
equal deleted inserted replaced
20973:98123dbc498a 20974:769f5a2d0879
2452 let termbuf2 = term_start(&shell, #{hidden: 1}) 2452 let termbuf2 = term_start(&shell, #{hidden: 1})
2453 call assert_fails('call popup_create(termbuf2, #{})', 'E861:') 2453 call assert_fails('call popup_create(termbuf2, #{})', 'E861:')
2454 call term_sendkeys(termbuf2, "exit\<CR>") 2454 call term_sendkeys(termbuf2, "exit\<CR>")
2455 2455
2456 " Exiting shell closes popup window 2456 " Exiting shell closes popup window
2457 let pupwin = win_getid()
2458 call feedkeys("exit\<CR>", 'xt') 2457 call feedkeys("exit\<CR>", 'xt')
2459 " Wait for shell to exit 2458 " Wait for shell to exit
2460 call WaitForAssert({-> assert_notequal(pupwin, win_getid())}) 2459 call WaitForAssert({-> assert_equal("dead", job_status(term_getjob(termbuf)))})
2461 2460
2462 call feedkeys(":quit\<CR>", 'xt') 2461 call feedkeys(":quit\<CR>", 'xt')
2463 call assert_equal(origwin, win_getid()) 2462 call assert_equal(origwin, win_getid())
2464 endfunc 2463 endfunc
2465 2464