comparison src/testdir/test_startup.vim @ 34236:fdc8a179c79e v9.1.0063

patch 9.1.0063: GTK code can be improved Commit: https://github.com/vim/vim/commit/94ff09a0935bc78fd81e9c79f099d42c94e3c218 Author: lilydjwg <lilydjwg@gmail.com> Date: Mon Jan 29 20:14:01 2024 +0100 patch 9.1.0063: GTK code can be improved Problem: GTK code can be improved Solution: Improve GTK code for initial Wayland support (lilydjwg) related: #9639 Signed-off-by: lilydjwg <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 29 Jan 2024 21:15:03 +0100
parents 8e6ccb8cf556
children 995b539939c4
comparison
equal deleted inserted replaced
34235:0c1f955375c4 34236:fdc8a179c79e
524 let lines = readfile('Xtest_geometry') 524 let lines = readfile('Xtest_geometry')
525 " Depending on the GUI library and the windowing system the final size 525 " Depending on the GUI library and the windowing system the final size
526 " might be a bit different, allow for some tolerance. Tuned based on 526 " might be a bit different, allow for some tolerance. Tuned based on
527 " actual failures. 527 " actual failures.
528 call assert_inrange(31, 35, str2nr(lines[0])) 528 call assert_inrange(31, 35, str2nr(lines[0]))
529 call assert_equal('13', lines[1]) 529 " for some reason, the window may contain fewer lines than requested
530 " for GTK, so allow some tolerance
531 call assert_inrange(8, 13, str2nr(lines[1]))
530 call assert_equal('41', lines[2]) 532 call assert_equal('41', lines[2])
531 call assert_equal('150', lines[3]) 533 call assert_equal('150', lines[3])
532 call assert_equal('[41, 150]', lines[4]) 534 call assert_equal('[41, 150]', lines[4])
533 endif 535 endif
534 endif 536 endif