diff src/testdir/test_gui.vim @ 28000:fc34d6c4a42c v8.2.4525

patch 8.2.4525: some GUI tests don't work on Athena Commit: https://github.com/vim/vim/commit/08238045e769fce2d5bf1e17167e26eafc3d72b8 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Mar 7 16:57:22 2022 +0000 patch 8.2.4525: some GUI tests don't work on Athena Problem: Some GUI tests don't work on Athena. Solution: Skip tests that won't work. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/9902)
author Bram Moolenaar <Bram@vim.org>
date Mon, 07 Mar 2022 18:00:04 +0100
parents c6789534b255
children b4c111ea83b1
line wrap: on
line diff
--- a/src/testdir/test_gui.vim
+++ b/src/testdir/test_gui.vim
@@ -1364,6 +1364,10 @@ endfunc
 
 " Test for generating a GUI tabline event to select a tab page
 func Test_gui_tabline_event()
+  if has('gui_athena')
+    throw 'Skipped: tabline is not supported in Athena GUI'
+  endif
+
   %bw!
   edit Xfile1
   tabedit Xfile2
@@ -1391,6 +1395,9 @@ endfunc
 
 " Test for generating a GUI tabline menu event to execute an action
 func Test_gui_tabmenu_event()
+  if has('gui_athena')
+    throw 'Skipped: tabmenu is not supported in Athena GUI'
+  endif
   %bw!
 
   " Try to close the last tab page
@@ -1427,6 +1434,11 @@ endfunc
 
 " Test for find/replace text dialog event
 func Test_gui_findrepl()
+  " Find/Replace dialog is supported only on GTK, Motif and MS-Windows.
+  if !has('gui_gtk') && !has('gui_motif') && !has('gui_win32')
+    return
+  endif
+
   new
   call setline(1, ['one two one', 'Twoo One two oneo'])