aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* tests: fix flaky ':digraphs displays digraphs' (#10406)Daniel Hahler2019-07-04
|
* Improve luacheck setup [skip appveyor]Daniel Hahler2019-07-04
| | | | | | | | - Move .luacheckrc to root, add read_globals=vim - Simplify lualint target, run it on all lua files - Lint preload.lua, but ignore W211 - Remove testlint target, included in lualint (and lint) - Clean up .luacheckrc
* tests: shell-test: add INTERACT mode (#10405)Daniel Hahler2019-07-03
| | | | Use it to improve ls_spec: it should not use the user's real shell for performance and other reasons.
* tests: executable_spec: keep assertion (#10408)Daniel Hahler2019-07-03
| | | | It was moved to become pending in 18127f64c, but the assertion should be kept.
* tests: fix/improve "TUI background color" tests (#10229)Daniel Hahler2019-07-03
| | | | - Ensure the opposite of the expected bg is active. - Improves performance: 1.2s instead of 4.5s.
* tests: fix flaky "TermClose event triggers when fast-exiting terminal job ↵Daniel Hahler2019-07-02
| | | | | | | | | | | stops" (#10377) [ ERROR ]...neovim/neovim/test/functional/autocmd/termclose_spec.lua @ TermClose event triggers when fast-exiting terminal job stops test/functional/helpers.lua:96: Vim(call):E900: Invalid channel id stack traceback: test/functional/helpers.lua:96: in function 'request' test/functional/helpers.lua:254: in function 'command' ...neovim/neovim/test/functional/autocmd/termclose_spec.lua:23: in function <...neovim/neovim/test/functional/autocmd/termclose_spec.lua:20>
* tests: fix flaky "terminal (with fake shell) with not arguments …" (#10401)Daniel Hahler2019-07-02
| | | | | | `retry()` would only try it three times (waiting for 20ms in between), despite the large timeout. Fixes https://github.com/neovim/neovim/issues/10265.
* defaults: wildoptions=pum,tagfile #10384Justin M. Keyes2019-07-01
| | | ref #6289
* Merge pull request #10389 from bfredl/luafloatBjörn Linse2019-07-01
|\ | | | | api/lua: make nvim_execute_lua use native lua floats, not special tables
| * api/lua: make nvim_execute_lua use native lua floats, not special tablesBjörn Linse2019-07-01
| | | | | | | | | | | | | | | | | | | | Rationale: the purpose of nvim_execute_lua is to simply call lua code with lua values. If a lua function expects a floating point value, it should be enough to specify a float as argument to nvim_execute_lua. However, make sure to preserve the existing roundtripping behavior of API values when using `vim.api` functions. This is covered by existing lua/api_spec.lua tests.
* | cmdline: correct the column position of wildoptions=pum popupmenuBjörn Linse2019-07-01
|/ | | | | - position might get invalid with "longest" match - position might be wrong when completed pattern ends in "/"
* Merge pull request #10316 from bfredl/cb_safetyBjörn Linse2019-06-30
|\ | | | | luv callbacks: throw error on deferred methods instead of crashing
| * make vim.loop == require'luv'Björn Linse2019-06-30
| | | | | | | | | | This avoids initializing libluv a second time if a plugin invokes require'luv'. It is probably not an issue, but better to be safe.
| * libluv: use luv_set_callback to control callback executionBjörn Linse2019-06-30
| | | | | | | | | | Disable the use of deferred API functions in a fast lua callback Correctly display error messages from a fast lua callback
* | man.vim: Handle ANSI escape sequences with ":" #10267Kovas Palunas2019-06-30
|/ | | | closes #10267
* build: update some test dependencies (#10339)Daniel Hahler2019-06-29
| | | | | | | | | | * build: update some test dependencies * luacheck ignores * BuildLua: add ${BUSTED} to depends for ${BUSTED_LUA} This is required to rebuild it when busted gets updated.
* :ls : show "R", "F" for terminal-jobs #10370Justin M. Keyes2019-06-29
| | | | | | | | | | | This matches Vim behavior. From `:help :ls` : R a terminal buffer with a running job F a terminal buffer with a finished job ? a terminal buffer without a job: `:terminal NONE` TODO: implement `:terminal NONE`. ref #10349
* tests: fix flaky "timers can be stopped from the handler" (#10364)Daniel Hahler2019-06-29
| | | | | | | | | | | | Seen on Travis (osx): [ RUN ] timers can be stopped from the handler: FAIL .../build/neovim/neovim/test/functional/eval/timer_spec.lua:167: Expected objects to be the same. Passed in: (number) 2 Expected: (number) 3 stack traceback: .../build/neovim/neovim/test/functional/eval/timer_spec.lua:167: in function <.../build/neovim/neovim/test/functional/eval/timer_spec.lua:153>
* Merge pull request #10342 from bfredl/apisandboxBjörn Linse2019-06-26
|\ | | | | eval/api: don't allow the API to be called in the sandbox
| * eval/api: don't allow the API to be called in the sandbox.Björn Linse2019-06-26
| | | | | | | | | | Identifying and maintaining a "secure" subset of the API would be too much busywork. So just disable the entire thing.
* | Merge pull request #10344 from bfredl/extcmdredrawBjörn Linse2019-06-26
|\ \ | | | | | | cmdline: remove invalid cmdline_show event when aborting mapping
| * | cmdline: remove invalid cmdline_show event when aborting mappingBjörn Linse2019-06-26
| |/
* / compositor: handle scrolling of blended windowBjörn Linse2019-06-26
|/
* ui: add 'winblend' to support blending of floating windowsBjörn Linse2019-06-25
| | | | Also add `hi blend=` attribute to override transparency of indiviual attributes.
* getchar: Handle incomplete <Paste> in typeahead buffer #10311Alan Wu2019-06-24
| | | | | | | | | | | | <Paste> is a 3-byte sequence and the beginning one or two bytes can appear at the very end of the typeahead buffer. When this happens, we were exiting from `vgetorpeek()` instead of reading more characters to see the complete sequence. I think this should fix #7994 -- at least partially. Before this change, when I paste exactly 64 characters into a freshly booted instance, I get what I pasted plus the literal text "<Paste>" at the end. Nvim also stays in nopaste mode. The attached test case fails in this manner without the code change. Fix #7994
* screen: Adjust buffer sizes for multiple sign columns #10314oni-link2019-06-24
| | | | | | | | * screen: Fix to draw signs with combining characters. The buffer size for signs can be too small, because the upper length limit of a sign can be 56 bytes. If combining characters are only two bytes in size, this reduces to 32 bytes. * screen: Adjust buffer size to maximal sign column count
* tests: fix "api nvim_get_proc_children returns child process ids" (#10296)Daniel Hahler2019-06-22
| | | | | | | | | | | | | | | | | | | | | | There might be an existing job already - maybe due to some other test, but in this case there was only one failure in the test run. ``` [----------] Running tests from C:/projects/neovim/test/functional\api\proc_spec.lua [ RUN ] api nvim_get_proc_children returns child process ids: ERR test\functional\helpers.lua:392: retry() attempts: 450 C:/projects/neovim/test/functional\api\proc_spec.lua:22: Expected objects to be the same. Passed in: (number) 2 Expected: (number) 1 stack traceback: test\functional\helpers.lua:392: in function 'retry' C:/projects/neovim/test/functional\api\proc_spec.lua:21: in function <C:/projects/neovim/test/functional\api\proc_spec.lua:17> ``` https://ci.appveyor.com/project/neovim/neovim/builds/25461215/job/8ns204v6091iy9rs?fullLog=true#L2672
* channel: refactor events, prevent recursive invocation of eventsBjörn Linse2019-06-18
|
* messages: fix crash with msg_advance when using ext_messagesBjörn Linse2019-06-16
|
* messages: support shortmess-=S in ext_messagesBjörn Linse2019-06-16
|
* api/lua: add on_detach to nvim_buf_attachBjörn Linse2019-06-15
|
* ci: AppVeyor: fix cov job, remove duplicate non-cov one (#10217)Daniel Hahler2019-06-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ci: AppVeyor: set GCOV_ERROR_FILE This prevents the warnings/errors to be spilled into test results, causing them to fail them, e.g.: [ FAILED ] C:/projects/neovim/test/functional\core\main_spec.lua @ 97: Command-line option -s errors out when trying to use nonexistent file with -s C:/projects/neovim/test/functional\core\main_spec.lua:98: Expected objects to be the same. Passed in: (string) 'Cannot open for reading: "Xtest-functional-core-main-s.nonexistent": no such file or directory profiling:C:\projects\neovim\build/src/nvim/CMakeFiles/nvim.dir/buffer.c.gcda:Data file mismatch - some data files may have been concurrently updated without locking support ' Expected: (string) 'Cannot open for reading: "Xtest-functional-core-main-s.nonexistent": no such file or directory ' stack traceback: C:/projects/neovim/test/functional\core\main_spec.lua:98: in function <C:/projects/neovim/test/functional\core\main_spec.lua:97> For reference, the locking appears to have been reworked for gcc 9.1 [1]. 1: https://github.com/gcc-mirror/gcc/commit/56621355b helpers.clear: keep GCOV_ERROR_FILE in environment * ci: AppVeyor: remove MINGW_64 config (used with cov now) Also: - run MINGW_64-gcov first, and with PRs, since it provides coverage.
* tests: increase timeout with "timers doesn't mess up the cmdline" (#10212)Daniel Hahler2019-06-13
| | | | | | | | | | | | This might be required on (slower) CI. [ RUN ] timers doesn't mess up the cmdline: ERR test/functional/ui/screen.lua:562: expected intermediate screen state before final screen state stack traceback: test/functional/ui/screen.lua:562: in function '_wait' test/functional/ui/screen.lua:366: in function 'expect' .../build/neovim/neovim/test/functional/eval/timer_spec.lua:221: in function <.../build/neovim/neovim/test/functional/eval/timer_spec.lua:199> Ref: https://travis-ci.org/neovim/neovim/jobs/544974506#L3861
* tui: support rgba background detection (#10205)Harm te Hennepe2019-06-13
| | | Fixes https://github.com/neovim/neovim/issues/10159.
* main: do event_init before early_init #10183Daniel Hahler2019-06-12
| | | | | | Fixes https://github.com/neovim/neovim/issues/10172 * move log_init to event_init * move init_signs to end of early_init
* TUI: set os/input.c:global_fd to input->in_fd #10174erw72019-06-10
| | | | | | | | | | | | | Problem: When we changed startup to wait for the TUI (like a remote UI), we forgot to set os/input.c:global_fd. That used to be done by input_start(). Solution: Initialize os/input.c:global_fd before initializing libtermkey (termkey_new_abstract) so that tui_get_stty_erase() and friends can inspect the correct fd. fixes #10134 close #10174
* lua: introduce vim.loop (expose libuv event-loop) #10123George Zhao2019-06-10
| | | | | | Co-authored-by: Andrey Popp <8mayday@gmail.com> closes #9546 closes #10084
* defaults: exclude "S" from 'shortmess' #10136Justin M. Keyes2019-06-07
| | | ref #6289
* lua: docs and tests for vim.scheduleBjörn Linse2019-06-05
|
* Merge pull request #10117 from bfredl/ctrl-o_eventBjörn Linse2019-06-04
|\ | | | | normal: Don't exit CTRL-O mode after processing K_EVENT
| * normal: Don't exit CTRL-O mode after processing K_EVENTBjörn Linse2019-06-04
| |
* | Merge pull request #9170 from bfredl/lua_cbBjörn Linse2019-06-04
|\ \ | |/ |/| lua callbacks for nvim_buf_attach
| * api: allow nvim_buf_attach from lua using callbacksBjörn Linse2019-06-04
| |
* | Fix issue where test failserw72019-06-04
| |
* | Merge #9338 'vim-patch:8.1.{569,571}'Justin M. Keyes2019-06-03
|\ \ | |/ |/|
| * functionaltests: fix new execute() testsJan Edmund Lazo2019-06-03
| |
| * update functional test for "places cursor correctly #6035"Sha Liu2019-06-03
| |
| * UI: Fix wrong msg_col after execute()Sha Liu2019-06-03
| | | | | | | | | | closes #6035 closes #9250
* | api/buffer: create new buffers in the "opened" stateBjörn Linse2019-06-03
| | | | | | | | | | | | | | Otherwise vim will think that ml_append() needs to "enter" the buffer, which emits unexpected autocommands. ref https://github.com/vim-airline/vim-airline/issues/1930
* | test: don't detach screen just to change the sizeBjörn Linse2019-06-03
| |