comparison 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
comparison
equal deleted inserted replaced
27999:c8d1520e7878 28000:fc34d6c4a42c
1362 call assert_true(test_gui_event("dropfiles", d)) 1362 call assert_true(test_gui_event("dropfiles", d))
1363 endfunc 1363 endfunc
1364 1364
1365 " Test for generating a GUI tabline event to select a tab page 1365 " Test for generating a GUI tabline event to select a tab page
1366 func Test_gui_tabline_event() 1366 func Test_gui_tabline_event()
1367 if has('gui_athena')
1368 throw 'Skipped: tabline is not supported in Athena GUI'
1369 endif
1370
1367 %bw! 1371 %bw!
1368 edit Xfile1 1372 edit Xfile1
1369 tabedit Xfile2 1373 tabedit Xfile2
1370 tabedit Xfile3 1374 tabedit Xfile3
1371 1375
1389 %bw! 1393 %bw!
1390 endfunc 1394 endfunc
1391 1395
1392 " Test for generating a GUI tabline menu event to execute an action 1396 " Test for generating a GUI tabline menu event to execute an action
1393 func Test_gui_tabmenu_event() 1397 func Test_gui_tabmenu_event()
1398 if has('gui_athena')
1399 throw 'Skipped: tabmenu is not supported in Athena GUI'
1400 endif
1394 %bw! 1401 %bw!
1395 1402
1396 " Try to close the last tab page 1403 " Try to close the last tab page
1397 call test_gui_event('tabmenu', #{tabnr: 1, item: 1}) 1404 call test_gui_event('tabmenu', #{tabnr: 1, item: 1})
1398 call feedkeys("y", "Lx!") 1405 call feedkeys("y", "Lx!")
1425 %bw! 1432 %bw!
1426 endfunc 1433 endfunc
1427 1434
1428 " Test for find/replace text dialog event 1435 " Test for find/replace text dialog event
1429 func Test_gui_findrepl() 1436 func Test_gui_findrepl()
1437 " Find/Replace dialog is supported only on GTK, Motif and MS-Windows.
1438 if !has('gui_gtk') && !has('gui_motif') && !has('gui_win32')
1439 return
1440 endif
1441
1430 new 1442 new
1431 call setline(1, ['one two one', 'Twoo One two oneo']) 1443 call setline(1, ['one two one', 'Twoo One two oneo'])
1432 1444
1433 " Replace all instances of a string with another 1445 " Replace all instances of a string with another
1434 let args = #{find_text: 'one', repl_text: 'ONE', flags: 0x4, forward: 1} 1446 let args = #{find_text: 'one', repl_text: 'ONE', flags: 0x4, forward: 1}