From 8bc8f4a8b245185cc509dee5cdb20f71a56f23d7 Mon Sep 17 00:00:00 2001 From: ichizok Date: Fri, 17 Jun 2022 14:17:43 +0900 Subject: [PATCH] Fix Test_gui_dialog_file for MacVim GUI --- src/testdir/test_gui.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index b926a5b414..706738857f 100644 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -1608,7 +1608,12 @@ func Test_gui_dialog_file() execute prefix .. GetVimCommand() .. ' -g -f --clean --gui-dialog-file Xdialog -S Xlines' call WaitForAssert({-> assert_true(filereadable('Xdialog'))}) - call assert_match('Question: Save changes to "Xfile"?', readfile('Xdialog')->join('')) + if has('gui_macvim') + call assert_match('Do you want to save the changes you made in the document "Xfile"?: ' .. + \ 'Your changes will be lost if you don''t save them.', readfile('Xdialog')->join('')) + else + call assert_match('Question: Save changes to "Xfile"?', readfile('Xdialog')->join('')) + endif call delete('Xdialog') call delete('Xfile')