aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* | startup: don't erase screen on `:hi Normal` during startupBjörn Linse2018-09-20
| | | | | | | | | | | | | | | | | | NB: existing `color default` test was actually enough to trigger the bug, when ext_newgrid=false is used. I created the `:hi Normal` test as I thought the builtin colors wouldn't set Normal (unless 'bg' is changed) But as the root cause actually comes from `:hi Normal`, it makes sense to still add the separate test (if `color default` here gets optimized to become a no-op, or something).
* | doc: test/README.md (#9020)Daniel Hahler2018-09-20
| | | | | | | | | | | | - testdir location - no old style tests are left in the fixed list in the Makefile [ci skip]
* | test: system_spec: remove redundant clear()Justin M. Keyes2018-09-19
| |
* | startup: wait for embedder before executing startup commands and filesBjörn Linse2018-09-18
| | | | | | | | | | | | Give embeders a chance to set up nvim, by processing a request before startup. This allows an external UI to show messages and prompts from --cmd and buffer loading (e.g. swap files)
* | buffer: add support for virtual text annotationsBjörn Linse2018-09-17
| |
* | vim-patch:8.1.0355 Incorrect adjusting the popup menu (#8996)Ronan Pigott2018-09-16
| | | | | | | | | | Problem: Incorrect adjusting the popup menu for the preview window. Solution: Compute position and height properl. (Ronan Pigott) Also show at least ten items. (closes vim/vim#3414)
* | getchar: allow <SID> in <Cmd> mappingBjörn Linse2018-09-13
| |
* | test: popupmenu placementrpigott2018-09-13
| |
* | tests: update expected output of :digraph commandJan Edmund Lazo2018-09-08
| |
* | functests: Add testsZyX2018-09-06
| |
* | test/win: job_spec: increase jobwait() timeoutJustin M. Keyes2018-09-05
| | | | | | | | | | | | | | powershell is slow, and this timeout is "worst case" so it doesn't make the tests more costly, only avoids a false-positive. close #8958
* | Merge #8888 from janlazo/vim-8.0.1020Justin M. Keyes2018-09-05
|\ \
| * | tests: call getchar(1) in timer callbackJan Edmund Lazo2018-09-04
| | | | | | | | | | | | Test changes from 8.0.1020 and 8.0.1048.
* | | test: API validation: assert exact stringJustin M. Keyes2018-09-05
| | | | | | | | | | | | | | | | | | | | | expect_err() matches against a pattern. Terminate the pattern with "$" to check against buffer overrun. ref #8931
* | | API: Avoid overrun when formatting error-messageJustin M. Keyes2018-09-05
|/ / | | | | | | | | | | | | msgpack_rpc_to_object (called by handle_request .. msgpack_rpc_to_array) always NUL-terminates API Strings. But handle_request .. msgpack_rpc_get_handler_for operates on a raw msgpack_object, before preparation.
* | Merge #8921 'highlight: Fix after-EOL matches at cursor'Justin M. Keyes2018-09-04
|\ \
| * | Add tests for highlighting after the end of a line.Ricky Zhou2018-09-03
| | |
* | | Merge pull request #8942 from bfredl/attr_stateBjörn Linse2018-09-03
|\ \ \ | |/ / |/| | screen.lua: extend snapshot_util() to work with extension state
| * | screen.lua: extend snapshot_util() to work with extension stateBjörn Linse2018-09-03
| | | | | | | | | | | | | | | Simplify handling of attributes: collect new attributes in the same pass as screen lines are rendered, instead of using two passes.
* | | test: Dump $NVIM_LOG_FILE contents (#8926)Justin M. Keyes2018-08-28
| | | | | | | | | | | | | | | | | | Do this at the test-framework level instead of CI (Travis) scripts. Then it works for QuickBuild and AppVeyor. ref eb6dd3e42dc38460e8624dc5faef894e21c6aa26
* | | API: nvim_unsubscribe(): Handle unknown events #8745Daniel Hahler2018-08-28
|/ / | | | | | | close #8745
* | tests: introduce screen:expect{...} formBjörn Linse2018-08-27
| |
* | warn about tests without libintlMatthieu Coudron2018-08-25
| |
* | vim-patch:8.0.1291: C indent wrong when * immediately follows commentJan Edmund Lazo2018-08-20
| | | | | | | | | | | | Problem: C indent wrong when * immediately follows comment. (John Bowler) Solution: Do not see "/*" after "*" as a comment start. (closes vim/vim#2321) https://github.com/vim/vim/commit/f8c53d3d268fc67a29c8c1a4e76fae85762e11b5
* | cmdline: always use save_cmdline before command_line_enterBjörn Linse2018-08-17
| | | | | | | | | | ":normal :" might be invoked in various ways, so its safest to always allow recursive invocation of cmdline mode
* | oldtests: finish port of 8.0.1224Jan Edmund Lazo2018-08-15
| |
* | cursor_shape: use attribute ids instead of syntax idsBjörn Linse2018-08-13
| | | | | | | | | | As attribute ids is the convention in the UI protocol Also remove non-threadsafe calls in tui.c to syntax module.
* | Merge pull request #8660 from ↵Björn Linse2018-08-02
|\ \ | | | | | | | | | | | | phodge/7688-nvim-buf-lines-should-return-empty-list-for-unloaded-buffer handle unloaded buffers in nvim_buf_*() functions
| * | functests: tests related to operations on unloaded buffers #7688Peter Hodge2018-07-25
| | |
* | | system(): handle profiling and 'verbose' #8730Marcos Almeida2018-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #8362 Vim's code calls `call_shell` directly from `get_system_output_as_rettv` whereas in Nvim this function has been rewritten to not call `call_shell` but to call `os_system` via `do_os_system`, losing the support for profiling and verbose. Changing the code to call `call_shell` from `get_system_output_as_rettv` seems to be too complicated to be worth it on the current version of the code. So this commit duplicates the relevant code.
* | | screen.c: add update_window_hl to special redrawing entrypointsBjörn Linse2018-07-27
|/ / | | | | | | | | | | | | | | | | | | | | The following (run as a script) used to cause a crash due to :sign using a special redraw (not updating nvim's specific highlight data structures) without proper redraw first, as split just flags for redraw later. set cursorline sign define piet text=>> texthl=Search split sign place 3 line=2 name=piet buffer=1
* | tests: add test for switching tabpage right after scrollBjörn Linse2018-07-24
| |
* | test: assert scroll region state for clearBjörn Linse2018-07-24
| | | | | | | | some clients assume this, so tests should check it
* | tests: test for redrawing tabline when msgsep marker goes outside screenBjörn Linse2018-07-24
| |
* | Merge #8589 'VimL: Remove legacy v:xx aliases'Justin M. Keyes2018-07-23
|\ \
| * | Make "v:errmsg", "v:shell_error" and "v:this_session" distinctShougo Matsushita2018-07-23
| | |
* | | vim-patch:8.0.1398: :packadd does not load packages from the "start" ↵Jan Edmund Lazo2018-07-23
|/ / | | | | | | | | | | | | | | | | directory (#8762) Problem: :packadd does not load packages from the "start" directory. (Alejandro Hernandez) Solution: Make :packadd look in the "start" directory if those packages were not loaded on startup. https://github.com/vim/vim/commit/9e1d399e63903c6f84d7888ad8d84ebf4e29d8a1
* | ui: add tests for hlstate extensionBjörn Linse2018-07-21
| |
* | ui: use line-based rather than char-based updates in screen.cBjörn Linse2018-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | Add ext_newgrid and ext_hlstate extensions. These use predefined highlights and line-segment based updates, for efficiency and simplicity.. The ext_hlstate extension in addition allows semantic identification of builtin and syntax highlights. Reimplement the old char-based updates in the remote UI layer, for compatibility. For the moment, this is still the default. The bulitin TUI uses the new line-based protocol. cmdline uses curwin cursor position when ext_cmdline is active.
* | highlight: refactor to use stateful representationBjörn Linse2018-07-21
| | | | | | | | | | This allows us to keep track of the source higlight groups, and not only the final combined highlights.
* | startup: fix ":if 0|syntax on|endif" bug (#8731)Justin M. Keyes2018-07-18
|/ | | | | | | Problem: ":if 0|syntax {on,off}|endif" skips the default of "syntax on" because the executor was setting the `did_syntax_onoff` flag even though "syntax {on,off}" is not actually executed. closes #8728
* Merge #8736 'vim-patch:8.0.0697: stable keymap.h'Justin M. Keyes2018-07-13
|\
| * tests: <SNR> is represented as 'R' (ASCII)Jan Edmund Lazo2018-07-12
| |
* | terminal: handle &confirm and :confirm on unloading (#8726)Marco Hinz2018-07-12
| | | | | | | | | | | | Show a proper confirmation dialog when trying to unload a terminal buffer while the confirm option is set or when :confirm is used. Fixes https://github.com/neovim/neovim/issues/4651
* | Merge pull request #8721 from bfredl/quickresizeBjörn Linse2018-07-12
|\ \ | | | | | | Fix redrawing issues with narrow screen and remove extra wait in resize tests
| * | screen: truncate showmode messagesBjörn Linse2018-07-12
| | | | | | | | | | | | | | | Before this, bottom of screen got messed up when modemsg (+ one extra space to not force terminal scroll) didn't fit on one line.
| * | tests/screen.lua: treat "resize" like any other eventBjörn Linse2018-07-11
| | | | | | | | | | | | Saves ~10 seconds in UI tests
* | | test/includes: Use ${gen_cdefs} when pre-processing headersJames McCoy2018-07-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that uv.h is directly being included, pre-processing of test/includes/pre/uv.h fails on Linux with In file included from «SRCDIR»/neovim/test/includes/pre/uv.h:1: In file included from /usr/include/uv.h:62: /usr/include/uv/unix.h:72:11: fatal error: 'uv/pthread-barrier.h' file not found # include "uv/pthread-barrier.h" ^~~~~~~~~~~~~~~~~~~~~~ 1 error generated. This happens because we're missing -D_GNU_SOURCE (part of ${gen_cdefs}), which makes the pthread_barrier_* functionality visible.
* | | test: Rename includes/pre/uv-errno.h to includes/pre/uv.hJames McCoy2018-07-11
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libuv users are only supposed to directly include uv.h. In v1.21.0, all the uv-*.h headers were renamed to uv/*.h, which caused the unit tests to fail with [123/125] Generating post/uv-errno.h FAILED: test/includes/post/uv-errno.h cd «SRCDIR»/src/neovim/build/test/includes && /usr/bin/clang -std=c99 -E -P «SRCDIR»/src/neovim/test/includes/pre/uv-errno.h -I/usr/include -I/usr/include -o «SRCDIR»/neovim/build/test/includes/post/uv-errno.h «SRCDIR»/src/neovim/test/includes/pre/uv-errno.h:1:10: error: 'uv-errno.h' file not found with <angled> include; use "quotes" instead #include <uv-errno.h> ^~~~~~~~~~~~ "uv-errno.h" The intention of the file is to extend libuv's error constants with more values used by the unit tests. This can just as easily be achieved without poking into pseudo-private header files.
* | transstr_buf: fix length comparison #8681Michael Hoffmann2018-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #8466 closes #8664 Regression by 0d7daaad98d5. - Fix length comparison. - Fix loop(s) which iterated over all fields of array `pcc` even if it was not filled up (try unicode 0x9f as statusline character). Note about the tests: - To input unicode with more than two hex digits you can use <C-v>U...: a + U+fe20: a︠ a + U+fe20 + U+fe21: a︠︡