comparison src/testdir/test_gui.vim @ 25060:54c0cb81e6a7 v8.2.3067

patch 8.2.3067: building fails with Athena Commit: https://github.com/vim/vim/commit/1d1ce613cdc74721499660b1d8911de164e2862d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 27 19:02:52 2021 +0200 patch 8.2.3067: building fails with Athena Problem: Building fails with Athena. (Elimar Riesebieter) Solution: Adjust #ifdefs and add the 'drop_file' feature.
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Jun 2021 19:15:03 +0200
parents 496221916885
children c39a64bc5ca2
comparison
equal deleted inserted replaced
25059:671ded1facd5 25060:54c0cb81e6a7
1158 let &lines = save_lines 1158 let &lines = save_lines
1159 endfunc 1159 endfunc
1160 1160
1161 " Test for dropping files into a window in GUI 1161 " Test for dropping files into a window in GUI
1162 func DropFilesInCmdLine() 1162 func DropFilesInCmdLine()
1163 CheckFeature drop_file
1164
1163 call feedkeys(":\"", 'L') 1165 call feedkeys(":\"", 'L')
1164 call test_gui_drop_files(['a.c', 'b.c'], &lines, 1, 0) 1166 call test_gui_drop_files(['a.c', 'b.c'], &lines, 1, 0)
1165 call feedkeys("\<CR>", 'L') 1167 call feedkeys("\<CR>", 'L')
1166 endfunc 1168 endfunc
1167 1169
1168 func Test_gui_drop_files() 1170 func Test_gui_drop_files()
1171 CheckFeature drop_file
1172
1169 call assert_fails('call test_gui_drop_files(1, 1, 1, 0)', 'E474:') 1173 call assert_fails('call test_gui_drop_files(1, 1, 1, 0)', 'E474:')
1170 call assert_fails('call test_gui_drop_files(["x"], "", 1, 0)', 'E474:') 1174 call assert_fails('call test_gui_drop_files(["x"], "", 1, 0)', 'E474:')
1171 call assert_fails('call test_gui_drop_files(["x"], 1, "", 0)', 'E474:') 1175 call assert_fails('call test_gui_drop_files(["x"], 1, "", 0)', 'E474:')
1172 call assert_fails('call test_gui_drop_files(["x"], 1, 1, "")', 'E474:') 1176 call assert_fails('call test_gui_drop_files(["x"], 1, 1, "")', 'E474:')
1173 1177