aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* tests: fix "system() … prints verbose information" (#10532)Daniel Hahler2019-07-17
| | | | | | | | It would previously fail with `set shell=sh` (no slash). For the test itself we can just use a non-existing (fake) shell, because it is only about the verbose output. Ref: https://github.com/neovim/neovim/issues/9330
* tests: move "busted" dir to "test" (#10518)Daniel Hahler2019-07-16
| | | | | | | | | | | * tests: move "busted" dir to "test" It is used for outputHandlers only, and clearly belongs to the tests. Use the full module name with the `-o` option to `busted` then for clarity. * luacheck * test/busted/outputHandlers/TAP.lua: use/extend upstream
* tests: shell-test: use count for REP (#10514)Daniel Hahler2019-07-16
| | | | | | | Also fix V576: use width specification > Incorrect format. Consider checking the third actual argument of the > 'sscanf' function. It's dangerous to use string specifier without width > specification. Buffer overflow is possible.
* viml/profile: revert proftime_T to unsigned type #10521Justin M. Keyes2019-07-16
| | | | | | | | | | | | | | - reltimestr(): Produce negative value by comparing the unsigned proftime_T value to INT64_MAX. https://github.com/neovim/neovim/issues/10452#issuecomment-511155132 1. The interfaces of nearly all platforms return uint64_t. INT64_MAX is only half of that. 2. Low-level interfaces like this typically define that there is no fixed starting point. The only guarantees are that it's (a) monotonically increasing at a rate that (b) matches real time. ref 06af88cd72ea fix #10452
* Merge pull request #10504 from bfredl/hl_defBjörn Linse2019-07-16
|\ | | | | highlight: expose builtin highlight groups using hl_group_set event
| * highlight: expose builtin highlight groups using hl_group_set eventBjörn Linse2019-07-14
| |
* | Fix missing CursorHoldI events (#3758)Daniel Hahler2019-07-16
| | | | | | Fixes https://github.com/neovim/neovim/issues/3757.
* | Fix is_executable_in_path() on Windows (#10468)erw72019-07-15
| | | | | | | | | | | | | | | | * Fix problem that 1byte extra memory was allocated in is_executable_in_path * Revert "Revert "tests: executable_spec: enable pending test #10443" (#10454)" This reverts commit 13fbeda0e56db36aeeb865bb5b33d13f69b2fdbc.
* | Merge pull request #10497 from bfredl/synlistBjörn Linse2019-07-14
|\ \ | |/ |/| messages: fix missing newlines in execute("syn list").
| * syntax: fix missing newlines in execute("syn list"). fixes #10467Björn Linse2019-07-14
| |
* | floats: fix 'winblend' on top of doublewidth chars.Björn Linse2019-07-13
|/ | | | | | | | | The interaction between 'winblend' and doublewidth chars in the background does not look very good. But check no chars get incorrectly placed at least. Also check that hidden EndOfBuffer region (from style="minimal") blends correctly.
* tests: use vim.inspect (#10485)Daniel Hahler2019-07-13
| | | | | | | The inspect modules is vendored as `vim.inspect`, and therefore it makes sense to use this in tests also. Ref: https://github.com/neovim/neovim/issues/6580 Ref: https://github.com/neovim/neovim/commit/bb3aa824b
* Merge pull request #9575 from bfredl/redrawdebugBjörn Linse2019-07-09
|\ | | | | ui: implement better redrawdebug for the compositor
| * ui: add 'redrawdebug' option for flexible debugging of redrawingBjörn Linse2019-07-09
| |
* | Merge pull request #10457 from bfredl/dwfloatBjörn Linse2019-07-09
|\ \ | | | | | | compositor: handle float overlapping left half of doublewidth char
| * | compositor: handle float overlapping left half of doublewidth charBjörn Linse2019-07-09
| |/
* | viml/reltime(): allow negative result #10453Justin M. Keyes2019-07-09
| | | | | | | | | | | | - define proftime_T as signed integer - profile_sub(): allow negative result closes #10452
* | Revert "tests: executable_spec: enable pending test #10443" (#10454)Daniel Hahler2019-07-09
|/ | | This reverts commit b53c483a4a6db91aad621d5f404cc6e930b434de.
* Merge pull request #10234 from bfredl/resizefloatBjörn Linse2019-07-08
|\ | | | | window: allow resize wincmds for floats
| * window: allow resize wincmds for floatsBjörn Linse2019-07-08
| |
* | tests: ex_terminal_spec: add test for previous leak (#10450)Daniel Hahler2019-07-08
|/ | | Closes https://github.com/neovim/neovim/pull/4766.
* Merge pull request #10090 from bfredl/floatpopupBjörn Linse2019-07-07
|\ | | | | api/window: add style="minimal" flag to disable unwanted UI features for simple floats
| * api/window: add style="minimal" flag to nvim_open_win()Björn Linse2019-07-07
| |
* | CI: improve gcov handling #10404Daniel Hahler2019-07-07
| | | | | | | | | | | | | | | | | | - Move __gcov_flush to process_spawn, for more reliable coverage tracking of subprocesses - Travis: use GCOV_ERROR_FILE - codecov: use "-X fix" to skip "fixing" uploaded coverage data; it should be handled by codecov's backend instead. - AppVeyor: no $PATH mangling, which breaks with the improved coverage tracking due to missing .dll in PATH.
* | tests: executable_spec: enable pending test #10443Daniel Hahler2019-07-07
| | | | | | Should hopefully work now after efc6d9951b.
* | vim-patch:8.1.1614: 'numberwidth' can only go up to 10Jan Edmund Lazo2019-07-05
|/ | | | | | Problem: 'numberwidth' can only go up to 10. Solution: Allow up to 20. (Charlie Stanton, closes vim/vim#4584) https://github.com/vim/vim/commit/f8a071265535b8cc43e50a81f4d5049883ca50e4
* Merge pull request #10398 from bfredl/resizeautocmdBjörn Linse2019-07-05
|\ | | | | screen: disable redrawing inside VimResized
| * screen: disable redrawing inside VimResizedBjörn Linse2019-07-05
| | | | | | | | | | | | Note: test doesn't fail on master. I cannot reproduce the glitches with -u NONE, probably it requires interfering events. But add some coverage for these checks at least.
* | highlight: show "hi Group" message correctly when not using the screenBjörn Linse2019-07-05
|/ | | | | | | ext_message doesn't set msg_col. Add a space and let client deal with wrapping. When using silent redirect show the unwrapped message form. Removed check is already part of msg_advance()
* tests: loop_spec: retry (#10413)Daniel Hahler2019-07-04
| | | | | | | | | | | | | | Flaky test (osx): [ FAILED ] ...is/build/neovim/neovim/test/functional/lua/loop_spec.lua @ 23: vim.loop timer ...is/build/neovim/neovim/test/functional/lua/loop_spec.lua:56: Expected objects to be the same. Passed in: (number) 0 Expected: (number) 2 stack traceback: ...is/build/neovim/neovim/test/functional/lua/loop_spec.lua:56: in function <...is/build/neovim/neovim/test/functional/lua/loop_spec.lua:23> It was bumped from sleeping for 20ms to 50ms in d33aaa0f5f already.
* 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.