run: |
sudo bash ci/remove_snap.sh
+ - name: Enable debug packages
+ run: |
+ # Some of the ASAN suppressions are in libraries linked with dlopen
+ # and symbolization of them requires these debug packages.
+ sudo apt install ubuntu-dbgsym-keyring
+ sudo cp ci/ddebs.list /etc/apt/sources.list.d/ddebs.list
+ sudo cp ci/pinned-pkgs /etc/apt/preferences.d/pinned-pkgs
+
- name: Install packages
run: |
# This is added by default, and it is often broken, but we don't need anything from it
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
-
PKGS=( \
gettext \
- libgtk2.0-dev:${{ matrix.architecture }} \
+ libgtk-3-dev:${{ matrix.architecture }} \
+ libgtk-3-bin:${{ matrix.architecture }} \
desktop-file-utils \
+ libc6-dbgsym:${{ matrix.architecture }} \
libtool-bin \
libncurses-dev:${{ matrix.architecture }} \
libxt-dev:${{ matrix.architecture }} \
+ libegl-mesa0:${{ matrix.architecture }} \
+ libegl1:${{ matrix.architecture }} \
+ libegl1-mesa-dev:${{ matrix.architecture }} \
+ libepoxy-dev:${{ matrix.architecture }} \
+ libwayland-egl1:${{ matrix.architecture }} \
+ libwayland-client0:${{ matrix.architecture }} \
+ libwayland-cursor0:${{ matrix.architecture }} \
locales-all \
software-properties-common \
sway \
)
+ if ${{ contains(matrix.extra, 'asan') }} && ${{ contains(matrix.architecture, 'native') }}; then
+ PKGS+=( \
+ libepoxy0-dbgsym:${{ matrix.architecture }} \
+ libxdamage1-dbgsym:${{ matrix.architecture }} \
+ libxcb1-dbgsym:${{ matrix.architecture }} \
+ libgtk-3-bin-dbgsym:${{ matrix.architecture }} \
+ libgtk-3-0t64-dbgsym:${{ matrix.architecture }} \
+ libglib2.0-0t64-dbgsym:${{ matrix.architecture }} \
+ libglib2.0-bin-dbgsym:${{ matrix.architecture }} \
+ libglib2.0-dev-bin-dbgsym:${{ matrix.architecture }} \
+ )
+ fi
if ${{ matrix.features == 'huge' }}; then
LUA_VER=${{ matrix.lua_ver || '5.4' }}
PKGS+=( \
libattr1-dev
)
fi
-
- sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y "${PKGS[@]}"
+ sudo apt-get update && sudo apt-get upgrade -y --allow-downgrades && sudo apt-get install -y --allow-downgrades "${PKGS[@]}"
- name: Install gcc-${{ env.GCC_VER }}
if: matrix.compiler == 'gcc'
echo "TEST=-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim"
fi
echo "CFLAGS=${CFLAGS}"
+ # Disables GTK attempt to integrate with the accessibility service that does run in CI.
+ echo "NO_AT_BRIDGE=1"
) >> $GITHUB_ENV
- name: Set up system
fi
- name: Test
- if: matrix.architecture != 'arm64'
- timeout-minutes: 25
- run: |
- make ${SHADOWOPT} ${TEST}
-
-
- # `sg audio` does not work on arm64 runner due to permission ('Incorrect password' error).
- - name: Test on arm64
- if: matrix.architecture == 'arm64'
timeout-minutes: 25
run: |
make ${SHADOWOPT} ${TEST}
ci/setup-xvfb.sh \
ci/setup-sway.sh \
ci/remove_snap.sh \
+ ci/ddebs.list \
+ ci/pinned-pkgs \
src/Make_all.mak \
src/README.md \
src/alloc.c \
--- /dev/null
+deb http://ddebs.ubuntu.com noble main restricted universe multiverse
+deb http://ddebs.ubuntu.com noble-updates main restricted universe multiverse
+deb http://ddebs.ubuntu.com noble-proposed main restricted universe multiverse
--- /dev/null
+# Unfortunately ubtunu does not keep the debug packages strictly up-to-date
+# with the main packages. So this file needs to pin the main packages back to
+# the version for which debug packages are available.
+
+Package: libwayland-client0
+Pin: version 1.20.0-1
+Pin-Priority: 1000
+
+Package: libwayland-client0
+Pin: version 1.20.0-1ubuntu0.1
+Pin-Priority: 100
+
+Package: libwayland-cursor0
+Pin: version 1.20.0-1
+Pin-Priority: 1000
+
+Package: libwayland-cursor0
+Pin: version 1.20.0-1ubuntu0.1
+Pin-Priority: 100
+
+Package: libwayland-egl1
+Pin: version 1.20.0-1
+Pin-Priority: 1000
+
+Package: libwayland-egl1
+Pin: version 1.20.0-1ubuntu0.1
+Pin-Priority: 100
+
+Package: libwayland-dev
+Pin: version 1.20.0-1
+Pin-Priority: 1000
+
+Package: libwayland-dev
+Pin: version 1.20.0-1ubuntu0.1
+Pin-Priority: 100
+
+Package: libwayland-server0
+Pin: version 1.20.0-1
+Pin-Priority: 1000
+
+Package: libwayland-server0
+Pin: version 1.20.0-1ubuntu0.1
+Pin-Priority: 100
+
+Package: libwayland-bin
+Pin: version 1.20.0-1
+Pin-Priority: 1000
+
+Package: libwayland-bin
+Pin: version 1.20.0-1ubuntu0.1
+Pin-Priority: 100
+
+# As of 2025-04-27 the base library package libgtk-3-0t64 is still at 3.24.41-4ubuntu1.2
+Package: libgtk-3-0t64-dbgsym
+Pin: version 3.24.41-4ubuntu1.2
+Pin-Priority: 1000
+
+Package: libgtk-3-0t64-dbgsym
+Pin: version 3.24.41-4ubuntu1.3
+Pin-Priority: 100
+
+# As of 2025-04-27 the base binary package libgtk-3-bin is still at 3.24.41-4ubuntu1.2
+Package: libgtk-3-bin-dbgsym
+Pin: version 3.24.41-4ubuntu1.2
+Pin-Priority: 1000
+
+Package: libgtk-3-bin-dbgsym
+Pin: version 3.24.41-4ubuntu1.3
+Pin-Priority: 100
pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width);
pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height);
+
+# if !GTK_CHECK_VERSION(3,0,0)
// For GTK2 changing the size of the form widget doesn't cause window
// resizing.
if (gtk_socket_id == 0)
gtk_window_resize(GTK_WINDOW(gui.mainwin), pixel_width, pixel_height);
update_window_manager_hints(0, 0);
+# endif
if (foreground_argument != NULL)
fg_pixel = gui_get_color((char_u *)foreground_argument);
endif
endfunc
+func SetupWindowSizeToForVisualDumps()
+ " The dumps used as reference in these tests were created with a terminal
+ " width of 75 columns. The vim window that uses the remainder of the GUI
+ " window width must be at least 3 columns. In theory this means we need the
+ " GUI shell to provide 78+ columns. However the GTK3 resize logic is flaky,
+ " sometimes resulting in X11 Configure events that are narrower than
+ " expected by a number of pixels equal to 2 column widths. Therefore
+ " setting 80 columns ensures that the GUI shell can still provide 78+
+ " columns. This is very likely papering over a GTK3 resize bug but one that
+ " has existed for a very long time. Establishing this workaround is meant to
+ " get the GTK3 code working under CI so that we can focus on removing this
+ " over the long term.
+ if &columns != 80
+ set columns=80
+ endif
+ " Without resetting lines, some GTK3 resize events can carry over between
+ " tests, which invalidate assumptions in the scrollbar offset calculations.
+ if &lines != 25
+ set lines=25
+ endif
+endfunc
+
" Command to check that making screendumps is supported.
" Caller must source screendump.vim
command CheckScreendump call CheckScreendump()
func CheckScreendump()
+ let g:check_screendump_called = v:true
if !CanRunVimInTerminal()
throw 'Skipped: cannot make screendumps'
endif
+ if has('gui_running')
+ call SetupWindowSizeToForVisualDumps()
+ endif
endfunc
" Command to check that we can Run Vim in a terminal window
leak:libpython*.so.*
leak:libruby*.so.*
leak:libxcb*.so.*
+# The renderer leaks 128 bytes of metadata when run under CI. Seems to only
+# happen with software rendering.
+leak:gdk_x11_screen_init_gl
" A test can set g:test_is_flaky to retry running the test.
let g:test_is_flaky = 0
+ let g:check_screendump_called = v:false
+
" A test can set g:max_run_nr to change the max retry count.
let g:max_run_nr = 5
if has('mac')
" message. Use this when using the same dump file with different options.
" Returns non-zero when verification fails.
func VerifyScreenDump(buf, filename, options, ...)
+ if has('gui_running') && exists("g:check_screendump_called") && g:check_screendump_called == v:false
+ echoerr "VerifyScreenDump() called from a test that lacks a CheckScreendump guard."
+ return 1
+ endif
let reference = 'dumps/' . a:filename . '.dump'
let filter = 'dumps/' . a:filename . '.vim'
let testfile = 'failed/' . a:filename . '.dump'
endfunc
func Test_WinScrolled_once_only()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
" Check that WinScrolled is not triggered immediately when defined and there
" are split windows.
func Test_WinScrolled_not_when_defined()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
func Test_autocmd_nested_switch_window()
" run this in a separate Vim so that SafeState works
CheckRunVimInTerminal
+ CheckScreendump
let lines =<< trim END
vim9script
CheckFeature balloon_eval_term
source screendump.vim
-CheckScreendump
let s:common_script =<< trim [CODE]
call setline(1, ["one one one", "two tXo two", "three three three"])
[CODE]
func Test_balloon_eval_term()
+ CheckScreendump
" Use <Ignore> after <MouseMove> to return from vgetc() without removing
" the balloon.
let xtra_lines =<< trim [CODE]
endfunc
func Test_balloon_eval_term_visual()
+ CheckScreendump
" Use <Ignore> after <MouseMove> to return from vgetc() without removing
" the balloon.
call writefile(s:common_script + [
endfunc
func Test_balloon_eval_term_rightleft()
+ CheckScreendump
CheckFeature rightleft
" Use <Ignore> after <MouseMove> to return from vgetc() without removing
" Test for using a popup menu for the command line completion matches
" (wildoptions=pum)
func Test_wildmenu_pum()
+ CheckScreendump
CheckRunVimInTerminal
let commands =<< trim [CODE]
endfunc
func Test_wildmenu_with_pum_foldexpr()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
" The popup menu should be positioned correctly over the status line of the
" bottom-most window.
func Test_wildmenu_pum_from_terminal()
+ CheckScreendump
CheckRunVimInTerminal
let python = PythonProg()
call CheckPython(python)
endfunc
func Test_wildmenu_pum_odd_wildchar()
+ CheckScreendump
CheckRunVimInTerminal
" Test odd wildchar interactions with pum. Make sure they behave properly
" Test that cursor is drawn at the correct column when it is after end of the
" line with 'virtualedit' and concealing.
func Run_test_conceal_virtualedit_after_eol(wrap)
+ CheckScreendump
+
let code =<< trim eval [CODE]
let &wrap = {a:wrap}
call setline(1, 'abcdefgh|hidden|ijklmnpop')
" Same as Run_test_conceal_virtualedit_after_eol(), but with 'rightleft'.
func Run_test_conceal_virtualedit_after_eol_rightleft(wrap)
+ CheckScreendump
+
let code =<< trim eval [CODE]
let &wrap = {a:wrap}
call setline(1, 'abcdefgh|hidden|ijklmnpop')
" Test that cursor position is correct when double-width chars are concealed.
func Run_test_conceal_double_width(wrap)
+ CheckScreendump
+
let code =<< trim eval [CODE]
let &wrap = {a:wrap}
call setline(1, ['aaaaa口=口bbbbb口=口ccccc', 'foobar'])
endfunc
func Test_crash2()
+ CheckScreendump
" The following used to crash Vim
let opts = #{wait_for_ruler: 0, rows: 20}
let args = ' -u NONE -i NONE -n -e -s -S '
endfunc
func Test_screenpos()
+ if has('gui_running')
+ set lines=25
+ set columns=78
+ endif
rightbelow new
rightbelow 20vsplit
call setline(1, ["\tsome text", "long wrapping line here", "next line"])
" This should no longer trigger ml_get errors
func Test_delete_ml_get_errors()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
set noshowcmd noruler scrolloff=0
" Verify a screendump with both the internal and external diff.
func VerifyBoth(buf, dumpfile, extra)
+ CheckScreendump
+
" trailing : for leaving the cursor on the command line
for cmd in [":set diffopt=filler" . a:extra . "\<CR>:", ":set diffopt+=internal\<CR>:"]
call term_sendkeys(a:buf, cmd)
" Verify a screendump with the internal diff only.
func VerifyInternal(buf, dumpfile, extra)
+ CheckScreendump
+
call term_sendkeys(a:buf, ":diffupdate!\<CR>")
" trailing : for leaving the cursor on the command line
call term_sendkeys(a:buf, ":set diffopt=internal,filler" . a:extra . "\<CR>:")
endfunc
func Run_Test_display_lastline(euro)
+ CheckScreendump
+
let lines =<< trim END
call setline(1, ['aaa', 'b'->repeat(200)])
set display=truncate
" Test for positioning cursor after CTRL-R expression failed
func Test_edit_ctrl_r_failed()
+ CheckScreendump
CheckRunVimInTerminal
let buf = RunVimInTerminal('', #{rows: 6, cols: 60})
execute "normal! gR\<C-o>g@l\<Esc>"
call assert_equal('n-niV', g:current_modes)
- " Test statusline updates for overstrike mode
- if CanRunVimInTerminal()
- let buf = RunVimInTerminal('', {'rows': 12})
- call term_sendkeys(buf, ":set laststatus=2 statusline=%!mode(1)\<CR>")
- call term_sendkeys(buf, ":")
- call TermWait(buf)
- call VerifyScreenDump(buf, 'Test_mode_1', {})
- call term_sendkeys(buf, "\<Insert>")
- call TermWait(buf)
- call VerifyScreenDump(buf, 'Test_mode_2', {})
- call StopVimInTerminal(buf)
- endif
if has('terminal')
term
delfunction OperatorFunc
endfunc
+" Test for the mode() function using Screendump feature
+func Test_mode_screendump()
+ CheckScreendump
+
+ " Test statusline updates for overstrike mode
+ let buf = RunVimInTerminal('', {'rows': 12})
+ call term_sendkeys(buf, ":set laststatus=2 statusline=%!mode(1)\<CR>")
+ call term_sendkeys(buf, ":")
+ call TermWait(buf)
+ call VerifyScreenDump(buf, 'Test_mode_1', {})
+ call term_sendkeys(buf, "\<Insert>")
+ call TermWait(buf)
+ call VerifyScreenDump(buf, 'Test_mode_2', {})
+ call StopVimInTerminal(buf)
+endfunc
+
" Test for append()
func Test_append()
enew!
call setline(3, test_null_list())
call setline(2, ["baz"])
call assert_equal(['bar', 'baz'], getline(1, '$'))
- close!
+ bw!
endfunc
func Test_getbufvar()
endfunc
func Test_scrollbars()
- " this test sometimes fails on CI
- let g:test_is_flaky = 1
-
" buffer with 200 lines
- new
call setline(1, repeat(['one', 'two'], 100))
- set guioptions+=rlb
+ set scrolloff=0
+ set guioptions=rlbk
" scroll to move line 11 at top, moves the cursor there
let args = #{which: 'left', value: 10, dragging: 0}
call assert_fails("call test_gui_event('scrollbar', #{which: 'a', value: 1, dragging: 0})", 'E475:')
set guioptions&
+ set scrolloff&
set wrap&
bwipe!
endfunc
endfunc
func Test_hlsearch_Ctrl_R()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_hlsearch_clipboard()
+ CheckScreendump
CheckRunVimInTerminal
CheckFeature clipboard_working
endfunc
func Test_matchclear_other_window()
+ CheckScreendump
CheckRunVimInTerminal
let buf = OtherWindowCommon()
call term_sendkeys(buf, ":call clearmatches(winid)\<CR>")
endfunc
func Test_matchadd_other_window()
+ CheckScreendump
CheckRunVimInTerminal
let buf = OtherWindowCommon()
call term_sendkeys(buf, ":call matchadd('Search', 'Hello', 1, -1, #{window: winid})\<CR>")
endfunc
func Test_match_in_linebreak()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_match_with_incsearch()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_match_tab_with_linebreak()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
" Test for opening a menu drawn in the cmdline area
func Test_popupmenu_cmdline()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
" Test more-prompt scrollback
func Test_message_more_scrollback()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_message_not_cleared_after_mode()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_mode_cleared_after_silent_message()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
" Test verbose message before echo command
func Test_echo_verbose_system()
+ CheckScreendump
CheckRunVimInTerminal
CheckUnix " needs the "seq" command
CheckNotMac " the macos TMPDIR is too long for snapshot testing
endfunc
func Test_move_undo()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
CheckFeature textprop
source screendump.vim
-CheckScreendump
func Test_textprop_popup()
+ CheckScreendump
let lines =<< trim END
call setline(1, range(1, 100))
call setline(50, 'some text to work with')
endfunc
func Test_textprop_popup_corners()
+ CheckScreendump
let lines =<< trim END
call setline(1, range(1, 100))
call setline(50, 'now working with some longer text here')
endfunc
func Test_textprop_popup_offsets()
+ CheckScreendump
let lines =<< trim END
call setline(1, range(1, 100))
call setline(50, 'now working with some longer text here')
endfunc
func Test_put_other_window()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_put_in_last_displayed_line()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_incsearch_scrolling()
+ CheckScreendump
CheckRunVimInTerminal
call assert_equal(0, &scrolloff)
call writefile([
" Test for correct cursor position after the sign column appears or disappears.
func Test_sign_cursor_position()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_start_with_tabs()
+ CheckScreendump
CheckRunVimInTerminal
let buf = RunVimInTerminal('-p a b c', {})
endfunc
func s:get_statusline()
+ if has('gui_running')
+ redraw!
+ sleep 1m
+ endif
return ScreenLines(&lines - 1, &columns)[0]
endfunc
endfunc
func Test_sub_highlight_zero_match()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
" Check highlighting for a small piece of C code with a screen dump.
func Test_syntax_c()
+ CheckScreendump
CheckRunVimInTerminal
call writefile([
\ '/* comment line at the top */',
endfunc
func Test_tabpage_cmdheight()
+ CheckScreendump
CheckRunVimInTerminal
call writefile([
\ 'set laststatus=2',
" running with 'encoding' "euc-jp". We need to make sure the text is in the
" right encoding, this is a bit tricky.
func Test_termencoding_euc_jp()
+ CheckScreendump
new
call setline(1, 'E89: バッファ %ld の変更は保存されていません (! で変更を破棄)')
write ++enc=euc-jp Xeuc_jp.txt
endfunc
func Test_terminal_postponed_scrollback()
+ CheckScreendump
" tail -f only works on Unix
CheckUnix
" Run this first, it fails when run after other tests.
func Test_aa_terminal_focus_events()
+ CheckScreendump
CheckNotGui
CheckUnix
CheckRunVimInTerminal
endfunc
func Test_open_term_from_cmd()
+ CheckScreendump
CheckUnix
CheckRunVimInTerminal
endfunc
func Test_combining_double_width()
+ CheckScreendump
CheckUnix
CheckRunVimInTerminal
endfunc
func Test_terminal_dumpload_dump()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_terminal_ansicolors_default_reset_tgc()
+ CheckScreendump
CheckFeature termguicolors
CheckRunVimInTerminal
endfunc
func Test_terminal_all_ansi_colors()
+ CheckScreendump
CheckRunVimInTerminal
" Use all the ANSI colors.
endfunc
func Test_terminal_normal_mode()
+ CheckScreendump
CheckRunVimInTerminal
" Run Vim in a terminal and open a terminal window to run Vim in.
" Check a terminal with different colors
func Terminal_color(group_name, highlight_cmds, highlight_opt, open_cmds)
+ CheckScreendump
CheckRunVimInTerminal
CheckUnix
endfunc
func Test_terminal_color_wincolor_split()
+ CheckScreendump
CheckRunVimInTerminal
CheckUnix
endfunc
func Test_terminal_in_popup()
+ CheckScreendump
CheckRunVimInTerminal
let text =<< trim END
" Check a terminal in popup window uses the default minimum size.
func Test_terminal_in_popup_min_size()
+ CheckScreendump
CheckRunVimInTerminal
let text =<< trim END
" Check a terminal in popup window with different colors
func Terminal_in_popup_color(group_name, highlight_cmds, highlight_opt, popup_cmds, popup_opt)
+ CheckScreendump
CheckRunVimInTerminal
CheckUnix
func Test_textprop_hl_override()
CheckScreendump
+ CheckRunVimInTerminal
let lines =<< trim END
call setline(1, ['One one one one one', 'Two two two two two', 'Three three three three'])
endfunc
func RunTestVisualBlock(width, dump)
+ CheckScreendump
call writefile([
\ "call setline(1, ["
\ .. "'xxxxxxxxx 123 x',"
enddef
func Test_prop_in_linebreak()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_with_linebreak()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_with_wrap()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_after_tab()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_before_tab()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_after_linebreak()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_inserts_text()
+ CheckScreendump
CheckRunVimInTerminal
" Just a basic check for now
endfunc
func Test_prop_inserts_text_highlight()
+ CheckScreendump
CheckRunVimInTerminal
" Just a basic check for now
endfunc
func Test_prop_inserts_text_normal_gM()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Run_test_prop_inserts_text_normal_gj_gk(cmd)
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_normal_gj_gk_gM_with_outer_virtual_text()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_inserts_text_visual_block()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Run_test_prop_inserts_text_showbreak(cmd)
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_before_tab_skipcol()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_inserts_text_before_linebreak()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_inserts_text_before_double_width_wrap()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_inserts_text_lcs_extends()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_right_align_twice()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_after()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_after_and_list()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_after_below_trunc()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_truncated_just_before_after()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_with_text_below_after_empty()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_with_text_above_below_empty()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_multiple_lines_above()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_with_multibyte_above()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_with_multibyte_below()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_with_text_below_rightleft()
+ CheckScreendump
CheckRunVimInTerminal
CheckFeature rightleft
endfunc
func Test_prop_with_text_above_empty()
+ CheckScreendump
CheckRunVimInTerminal
" check the cursor is in the correct line
endfunc
func Test_prop_with_text_below_after_match()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_after_joined()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_after_truncated()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_after_truncated_and_ambiwidth_is_double()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
func Test_props_with_text_after_truncated_not_utf8()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_empty_line()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_after_wraps()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_after_nowrap()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_with_text_below_cul()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_below_nowrap()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_above()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_with_text_above_padding()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_above_with_number()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_above_with_linebreak()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_above_and_before()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_below_split_line()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_prop_above_below_smoothscroll()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_override()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_CursorMoved()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_props_with_text_after_split_join()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
enddef
func Test_insert_text_start_incl()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_insert_text_list_mode()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_insert_text_with_padding()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_long_text_below_with_padding()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_text_after_nowrap()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_text_after_nowrap_list()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_text_below_nowrap()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_virtual_text_overlap_with_highlight()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_virtual_text_in_popup_highlight()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_insert_text_change_arg()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
enddef
func Test_text_prop_delete_updates()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_text_prop_diff_mode()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_error_after_using_negative_id()
+ CheckScreendump
" This needs to run a separate Vim instance because the
" "did_use_negative_pop_id" will be set.
CheckRunVimInTerminal
endfunc
func Test_modify_text_before_prop()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_overlong_textprop_above_crash()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_text_prop_list_hl_and_sign_highlight()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_textprop_with_wincolor()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
endfunc
func Test_undo_after_write()
+ CheckScreendump
" use a terminal to make undo work like when text is typed
CheckRunVimInTerminal
endfunc
func Test_setcellwidths_dump()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
" Test setcellwidths() on characters that are not targets of 'ambiwidth'.
func Test_setcellwidths_with_non_ambiwidth_character_dump()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
" For some reason this test causes Test_customlist_completion() to fail on CI,
" so run it as the last test.
func Test_zz_ambiwidth_hl_dump()
+ CheckScreendump
CheckRunVimInTerminal
let lines =<< trim END
enddef
def Run_Test_closure_in_for_loop_fails()
+ CheckScreendump
var lines =<< trim END
vim9script
redraw
endfunc
def Run_Test_silent_echo()
+ CheckScreendump
var lines =<< trim END
vim9script
def EchoNothing()
enddef
func Test_keytyped_in_nested_function()
+ CheckScreendump
CheckRunVimInTerminal
call Run_Test_keytyped_in_nested_function()
endfunc
def Run_test_no_redraw_when_restoring_cpo()
+ CheckScreendump
var lines =<< trim END
vim9script
export def Func()
endfunc
def Run_test_reject_declaration()
+ CheckScreendump
var buf = g:RunVimInTerminal('', {'rows': 6})
term_sendkeys(buf, ":vim9cmd var x: number\<CR>")
g:VerifyScreenDump(buf, 'Test_vim9_reject_declaration_1', {})
enddef
func Test_misplaced_type()
+ CheckScreendump
CheckRunVimInTerminal
call Run_Test_misplaced_type()
endfunc
def Run_Test_misplaced_type()
+ CheckScreendump
writefile(['let g:somevar = "asdf"'], 'XTest_misplaced_type', 'D')
var buf = g:RunVimInTerminal('-S XTest_misplaced_type', {'rows': 6})
term_sendkeys(buf, ":vim9cmd echo islocked('somevar: string')\<CR>")
let buf = RunVimInTerminal('', #{rows: 20, cmd: 'sh'})
call term_sendkeys(buf, s:xxd_cmd .. " -R never < XXDfile_colors\<cr>")
call TermWait(buf)
+ redraw
call VerifyScreenDump(buf, 'Test_xxd_color_0', {})
call TermWait(buf)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1370,
/**/
1369,
/**/