test/old: cherry-pick patch v8.1.1955 changes for test_trycatch.vim

This commit is contained in:
Jan Edmund Lazo 2020-10-21 00:03:36 -04:00
parent aed5a53d5f
commit cb8e0d07b3
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
6 changed files with 6 additions and 6 deletions

View File

@ -414,7 +414,7 @@ for s:test in sort(s:tests)
" Repeat a flaky test. Give up when:
" - it fails again with the same message
" - it fails five times (with a different mesage)
" - it fails five times (with a different message)
if len(v:errors) > 0
\ && (index(s:flaky_tests, s:test) >= 0
\ || v:errors[0] =~ s:flaky_errors_re)

View File

@ -521,7 +521,7 @@ endfunction
"
" Create a script that consists of the body of the function a:funcname.
" Replace any ":return" by a ":finish", any argument variable by a global
" variable, and and every ":call" by a ":source" for the next following argument
" variable, and every ":call" by a ":source" for the next following argument
" in the variable argument list. This function is useful if similar tests are
" to be made for a ":return" from a function call or a ":finish" in a script
" file.

View File

@ -109,7 +109,7 @@ func Test_define_script_var_with_lock()
unlet s:x
endfunc
func Test_descructuring_with_lock()
func Test_destructuring_with_lock()
const [a, b, c] = [1, 1.1, 'vim']
call assert_fails('let a = 1', 'E741:')

View File

@ -1744,7 +1744,7 @@ func Test_switchbuf()
call assert_equal(1, bufwinnr('Xqftestfile3'))
" If only quickfix window is open in the current tabpage, jumping to an
" entry with 'switchubf' set to 'usetab' should search in other tabpages.
" entry with 'switchbuf' set to 'usetab' should search in other tabpages.
enew | only
set switchbuf=usetab
tabedit Xqftestfile1

View File

@ -270,7 +270,7 @@ func Test_search_cmdline2()
" nor "/foo\<c-u>\<cr>" works to delete the commandline.
" In that case Vim should return "E35 no previous regular expression",
" but it looks like Vim still sees /foo and therefore the test fails.
" Therefore, disableing this test
" Therefore, disabling this test
"call assert_fails(feedkeys("/foo\<c-w>\<cr>", 'tx'), 'E35')
"call assert_equal({'lnum': 1, 'leftcol': 0, 'col': 0, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 0}, winsaveview())

View File

@ -58,7 +58,7 @@ function Test_tabpage()
q
"
"
" Test for ":tab drop multi-opend-file" to keep current tabpage and window.
" Test for ":tab drop multi-opened-file" to keep current tabpage and window.
new test1
tabnew
new test1