diff src/testdir/test_popupwin.vim @ 17920:233e316c0b5a v8.1.1956

patch 8.1.1956: screenshot tests may use a different encoding Commit: https://github.com/vim/vim/commit/0fdddeeb66bbe326860ddfc573eba42f6487bbda Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 1 15:26:23 2019 +0200 patch 8.1.1956: screenshot tests may use a different encoding Problem: Screenshot tests may use a different encoding. (Dominique Pelle) Solution: Always set 'encoding' to "utf-8" when running Vim in a terminal. (closes #4884)
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Sep 2019 15:30:03 +0200
parents 9606c0adc148
children ad7a4bd65f20
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -1378,7 +1378,6 @@ func Test_popup_never_behind()
   " |                             |
   " +-----------------------------+
   let lines =<< trim END
-    only 
     split
     vsplit
     let info_window1 = getwininfo()[0]
@@ -1649,11 +1648,12 @@ func Test_notifications()
   CheckFeature timers
   CheckScreendump
 
-  call writefile([
-	\ "call setline(1, range(1, 20))",
-	\ "hi Notification ctermbg=lightblue",
-	\ "call popup_notification('first notification', {})",
-	\], 'XtestNotifications')
+  let lines =<< trim END
+	call setline(1, range(1, 20))
+	hi Notification ctermbg=lightblue
+	call popup_notification('first notification', {})
+  END
+  call writefile(lines, 'XtestNotifications')
   let buf = RunVimInTerminal('-S XtestNotifications', #{rows: 10})
   call VerifyScreenDump(buf, 'Test_popupwin_notify_01', {})