]> granicus.if.org Git - vim/commitdiff
patch 8.0.1226: edit and popup tests failing v8.0.1226
authorBram Moolenaar <Bram@vim.org>
Thu, 26 Oct 2017 23:35:00 +0000 (01:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 26 Oct 2017 23:35:00 +0000 (01:35 +0200)
Problem:    Edit and popup tests failing.
Solution:   Make the tests pass.

src/testdir/test_edit.vim
src/testdir/test_popup.vim
src/version.c

index bb3af27102e4fc30ce50132208664acfc80bb3f3..f857516e88f764ad6fe1d003aac22033b3ed33fb 100644 (file)
@@ -215,14 +215,16 @@ endfunc
 
 func! Test_edit_08()
   " reset insertmode from i_ctrl-r_=
+  let g:bufnr = bufnr('%')
   new
   call setline(1, ['abc'])
   call cursor(1, 4)
-  call feedkeys(":set im\<cr>ZZZ\<c-r>=setbufvar(1,'&im', 0)\<cr>",'tnix')
+  call feedkeys(":set im\<cr>ZZZ\<c-r>=setbufvar(g:bufnr,'&im', 0)\<cr>",'tnix')
   call assert_equal(['abZZZc'], getline(1,'$'))
   call assert_equal([0, 1, 1, 0], getpos('.'))
   call assert_false(0, '&im')
   bw!
+  unlet g:bufnr
 endfunc
 
 func! Test_edit_09()
index ac8f62e8ab1ae8732e6a7851422459b9dccc4ff8..1be4e6fd3326a8f8111c5ba9c54d4a3fe4765278 100644 (file)
@@ -681,7 +681,8 @@ func Test_popup_and_preview_autocommand()
   call setline(2, '                                 os.')
   $
   call feedkeys("A\<C-X>\<C-O>\<C-N>\<C-N>\<C-N>\<enter>\<esc>", 'tx')
-  call assert_equal(["import os", "                                 os.EX_IOERR", ''], getline(1,'$'))
+  call assert_equal("import os", getline(1))
+  call assert_match('                                 os.\(EX_IOERR\|O_CREAT\)$', getline(2))
   call assert_equal(1, winnr('$'))
   " previewwindow option is not set
   call assert_equal(0, &previewwindow)
index 6ab4e75468debbf9cd0b47b135e2954bcb9cee3a..71569b34db415faf9b3c4594d4541b48eef33ee7 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1226,
 /**/
     1225,
 /**/