summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_popup.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-30 14:39:27 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-30 14:39:27 +0200
commitc79977a437d91306d576fb59e490601409503303 (patch)
tree12b331fec005adb90ca6b109676e6ef185db221f /src/testdir/test_popup.vim
parent660b85e39a48a9f2e3bd7e4d8b97d0a1b4842997 (diff)
patch 8.0.1163: popup test is flakyv8.0.1163
Problem: Popup test is flaky. Solution: Add a WaitFor() and fix another.
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r--src/testdir/test_popup.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim
index a42ec64a2a..4ab860b813 100644
--- a/src/testdir/test_popup.vim
+++ b/src/testdir/test_popup.vim
@@ -649,14 +649,15 @@ func Test_popup_and_window_resize()
call term_wait(g:buf, 100)
call term_sendkeys(g:buf, "\<c-v>")
call term_wait(g:buf, 100)
+ call WaitFor('term_getline(g:buf, 1) =~ "^!"')
call assert_match('^!\s*$', term_getline(g:buf, 1))
exe 'resize +' . (h - 1)
call term_wait(g:buf, 100)
redraw!
- call WaitFor('"" == term_getline(g:buf, 1)')
+ call WaitFor('term_getline(g:buf, 1) == ""')
call assert_equal('', term_getline(g:buf, 1))
sleep 100m
- call WaitFor('"^!" =~ term_getline(g:buf, term_getcursor(g:buf)[0] + 1)')
+ call WaitFor('term_getline(g:buf, term_getcursor(g:buf)[0] + 1) =~ "^!"')
call assert_match('^!\s*$', term_getline(g:buf, term_getcursor(g:buf)[0] + 1))
bwipe!
endfunc