]> granicus.if.org Git - vim/commitdiff
patch 8.1.1955: tests contain typos v8.1.1955
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Sep 2019 12:45:28 +0000 (14:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Sep 2019 12:45:28 +0000 (14:45 +0200)
Problem:    Tests contain typos.
Solution:   Correct the typos. (Dominique Pelle)

13 files changed:
src/testdir/popupbounce.vim
src/testdir/runtest.vim
src/testdir/screendump.vim
src/testdir/test49.vim
src/testdir/test_autocmd.vim
src/testdir/test_cindent.vim
src/testdir/test_const.vim
src/testdir/test_popupwin.vim
src/testdir/test_quickfix.vim
src/testdir/test_search.vim
src/testdir/test_tabpage.vim
src/testdir/test_tcl.vim
src/version.c

index 2d1345bfd5d1e2390470800b87231157dc090018..b9f7bd179da88958d971ebf2a34a09e6d0da0d94 100644 (file)
@@ -6,7 +6,7 @@
 "    ./vim --clean -S testdir/popupbounce.vim main.c
 "    gprof vim gmon.out | vim -
 
-" using line contination
+" using line continuation
 set nocp
 
 " don't switch screens when quitting, so we can read the frames/sec
index db6dcd70994a2e0fe4e407c463bb4a391191122b..5623dc8190506a6f7a303d573ffa43793c5d253e 100644 (file)
@@ -349,7 +349,7 @@ let s:flaky_tests = [
       \ 'Test_terminal_scrollback()',
       \ 'Test_terminal_split_quit()',
       \ 'Test_terminal_termwinkey()',
-      \ 'Test_terminal_termwinsize_mininmum()',
+      \ 'Test_terminal_termwinsize_minimum()',
       \ 'Test_terminal_termwinsize_option_fixed()',
       \ 'Test_terminal_termwinsize_option_zero()',
       \ 'Test_terminal_tmap()',
@@ -395,7 +395,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)
index cc1c239da983f54b45157c29ab3559fb4c44a66f..d04d96d983a110348bc4db44cbdfb13637a789e5 100644 (file)
@@ -24,7 +24,7 @@ func VerifyScreenDump(buf, filename, options, ...)
   let reference = 'dumps/' . a:filename . '.dump'
   let testfile = 'failed/' . a:filename . '.dump'
 
-  " Redraw to execut the code that updates the screen.  Otherwise we get the
+  " Redraw to execute the code that updates the screen.  Otherwise we get the
   " text and attributes only from the internal buffer.
   redraw
 
index 7393ec41503f293b98d2b42e24deffec3a734f3c..bd6051461bbe6e9a8ea827a1646f9230704a8b90 100644 (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.
index 9dc578e451d3bbfca89f66645988e4130a14f333..0979bb4a159340ccb9feac6ba1101efd88d0f580 100644 (file)
@@ -1091,7 +1091,7 @@ func Test_OptionSet()
   call assert_equal(g:opt[0], g:opt[1])
 
 
-  " 33: Test autocomands when an option value is converted internally.
+  " 33: Test autocommands when an option value is converted internally.
   noa set backspace=1 " Reset global and local value (without triggering autocmd)
   let g:options=[['backspace', 'indent,eol', 'indent,eol', 'indent,eol', '2', 'global', 'set']]
   set backspace=2
index e12e4578760ac78a5d8446f65de06dde47adad2e..2cb3f24b7a0d1ce186fcc483e195e6ff5fefd49d 100644 (file)
@@ -815,7 +815,7 @@ func Test_cindent_1()
         }
      }
 
-  public: // <-- this was incoreectly indented before!!
+  public: // <-- this was incorectly indented before!!
      void testfall();
   protected:
      void testfall();
@@ -1780,7 +1780,7 @@ func Test_cindent_1()
                }
        }
 
-       public: // <-- this was incoreectly indented before!!
+       public: // <-- this was incorectly indented before!!
        void testfall();
        protected:
        void testfall();
index d93de72bd49fbe64ac125104d469cf2fd40e1bf1..55e4492bde9c84c61ea2d7f85d32e0eec269e4a5 100644 (file)
@@ -125,7 +125,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:')
index 123d12aa77e3cacecef71039d1b3db3fcc2d2de3..16e451929083f1a488ae1303e7de816dc2a80e4f 100644 (file)
@@ -1857,7 +1857,7 @@ func Test_popupwin_garbage_collect()
   let winid = popup_create('something', #{filter: function('MyPopupFilter', [{}])})
   call test_garbagecollect_now()
   redraw
-  " Must not crach caused by invalid memory access
+  " Must not crash caused by invalid memory access
   call feedkeys('j', 'xt')
   call assert_true(v:true)
 
index 5aad587761bb36e03d46cce1003e38f28f586709..7a1f96d7490b546a337c691f714446ef457ff394 100644 (file)
@@ -1667,7 +1667,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
index 7c30a1ac08852c7a1c19e0825816f39975fc00f5..dbe4c2a4d87b7a53af63e39c11f525d51873d333 100644 (file)
@@ -267,7 +267,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())
 
index e22206767471a9b9538b3aae2ae7844c89768c1d..c8ac1141fd20d804ae6e71ca4d62e85044639902 100644 (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
index 9923a2e332a6c188152811bbb3f9e7c530c7314a..c2fd191b84f4b83250d27b462697ffae6036c5b9 100644 (file)
@@ -4,7 +4,7 @@ source check.vim
 CheckFeature tcl
 
 " Helper function as there is no builtin tcleval() function similar
-" to perleval, luaevel(), pyeval(), etc.
+" to perleval, luaeval(), pyeval(), etc.
 func TclEval(tcl_expr)
   let s = split(execute('tcl ' . a:tcl_expr), "\n")
   return (len(s) == 0) ? '' : s[-1]
index 257c3aa2569b7b560390e4c6433806777a84b382..afde7b6bc738e7bb3443715e1a2be0d95184d7a0 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1955,
 /**/
     1954,
 /**/