Skip to content

Commit 8bc8f4a

Browse files
committed
Fix Test_gui_dialog_file for MacVim GUI
1 parent e7a1361 commit 8bc8f4a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/testdir/test_gui.vim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,12 @@ func Test_gui_dialog_file()
16081608
execute prefix .. GetVimCommand() .. ' -g -f --clean --gui-dialog-file Xdialog -S Xlines'
16091609

16101610
call WaitForAssert({-> assert_true(filereadable('Xdialog'))})
1611-
call assert_match('Question: Save changes to "Xfile"?', readfile('Xdialog')->join('<NL>'))
1611+
if has('gui_macvim')
1612+
call assert_match('Do you want to save the changes you made in the document "Xfile"?: ' ..
1613+
\ 'Your changes will be lost if you don''t save them.', readfile('Xdialog')->join('<NL>'))
1614+
else
1615+
call assert_match('Question: Save changes to "Xfile"?', readfile('Xdialog')->join('<NL>'))
1616+
endif
16121617

16131618
call delete('Xdialog')
16141619
call delete('Xfile')

0 commit comments

Comments
 (0)