]> granicus.if.org Git - vim/commitdiff
patch 8.1.1440: win_execute() test fails v8.1.1440
authorBram Moolenaar <Bram@vim.org>
Sat, 1 Jun 2019 15:06:25 +0000 (17:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 1 Jun 2019 15:06:25 +0000 (17:06 +0200)
Problem:    Win_execute() test fails.
Solution:   Adjust the expected error number.  Move to popup test.

src/testdir/test_execute_func.vim
src/testdir/test_popupwin.vim
src/version.c

index 78561b3a9b3f60a5e35af03c3d5f910ad85355dc..81a67c0359c1f93cbf4326b99303c251fb9c4420 100644 (file)
@@ -94,8 +94,6 @@ func Test_win_execute()
     let line = win_execute(popupwin, 'echo getline(1)')
     call assert_match('the popup win', line)
 
-    call assert_fails('call win_execute(popupwin, "bwipe!")', 'E937:')
-
     call popup_close(popupwin)
   endif
 
index 7c3cd94f0814b99013741e892e0bf2e45297faae..1c8f7ef6c1658fa2e892c54e4e1865c96f306929 100644 (file)
@@ -118,6 +118,7 @@ func Test_win_execute_not_allowed()
   call assert_fails('call win_execute(winid, "vsplit")', 'E994:')
   call assert_fails('call win_execute(winid, "close")', 'E994:')
   call assert_fails('call win_execute(winid, "bdelete")', 'E994:')
+  call assert_fails('call win_execute(winid, "bwipe!")', 'E994:')
   call assert_fails('call win_execute(winid, "tabnew")', 'E994:')
   call assert_fails('call win_execute(winid, "tabnext")', 'E994:')
   call assert_fails('call win_execute(winid, "next")', 'E994:')
index 30c0831078a7cf990aaccf2828b64365cb5cb7d2..96571af02ba5ef8365e1cd8fcfd6307debae392e 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1440,
 /**/
     1439,
 /**/