aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal
Commit message (Collapse)AuthorAge
* Add some tests and cleanup.Michael Ennen2016-12-12
|
* os/shell: Throttle :! output, pulse "..." message.Justin M. Keyes2016-12-09
| | | | | | | | | | | | | | | | | | | | | | | | | | Periodically skip :! spam. This is a "cheat" that works for all UIs and greatly improves responsiveness when :! spams MB or GB of output: :!yes :!while true; do date; done :!git grep '' :grep -r '' * After ~10KB of data is seen from a single :! invocation, output will be skipped for ~1s and three dots "..." will pulse in the bottom-left. Thereafter the behavior alternates at every: * 10KB received * ~1s throttled This also avoids out-of-memory which could happen with large :! outputs. Note: This commit does not change the behavior of execute(':!foo'). execute(':!foo') returns the string ':!foo^M', it captures *only* Vim messages, *not* shell command output. Vim behaves the same way. Use system('foo') for capturing shell command output. Closes #1234 Helped-by: oni-link <knil.ino@gmail.com>
* build: Target luacheck HEAD.Justin M. Keyes2016-11-17
| | | | | | | | | | | | https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606 > If you really want to use bleeding-edge version you should get the > rockspec from master branch, not a fixed commit ... > The correct way to install from a specific commit is cloning that > commit and running "luarocks make" from project directory. The reason > is that running "install" or "build" on an scm rockspec fetches > sources from master but uses build description from the rockspec > itself, which may be outdated.
* test: window_spec: Remove flaky terminal resize testJames McCoy2016-11-13
|
* test: :terminal should not interrupt Press-ENTERJustin M. Keyes2016-10-20
| | | | References #2748
* tests: fix racyness in terminal/api_spec.luaBjörn Linse2016-10-19
| | | | | Previously, the nvim_input from the socket channels could be processed before the input from stdin in rare cases.
* test/tui_spec: Force LANG=CJustin M. Keyes2016-10-13
| | | | References #5455
* test/terminal: Cover race when :term shell process exits.Justin M. Keyes2016-10-12
| | | | | | References #5445 See https://github.com/neovim/neovim/pull/5445#issuecomment-252529766
* test: api_specJustin M. Keyes2016-09-22
| | | | | This is an (unsuccessful) attempt to cover #4163. It covers other behavior, so it's worth keeping.
* test: synIDattr returns empty, not -1Stéphane Campinas2016-09-16
| | | | | - Behavior changed in 7.4.1547 - Also removed N/A specs: nvim does not support ":hi term=..."
* syntax.c: Support bg/fg special color-names. #5319Kerem Cakirer2016-09-16
| | | | Refresh colors if changing Normal group
* Merge pull request #5225 from equalsraf/windows-functionaltestsBjörn Linse2016-08-31
|\ | | | | Enable functional tests in Appveyor
| * Mark some functional tests as pending in WindowsRui Abreu Ferreira2016-08-26
| |
* | api/ui: add tests for popupmenu_external eventsBjörn Linse2016-08-29
|/ | | | update screen.lua to use new style nvim_ui_attach
* tests: don't ignore highlights in terminal testsBjörn Linse2016-08-14
|
* test: TUI colors: Skip TERM=linux on non-linux. (#5015)Justin M. Keyes2016-07-06
| | | Also skip TERM=screen (GNU, so probably not common on BSD)
* test: TUI colors ('t_Co')Justin M. Keyes2016-07-03
|
* Add tests for new featureMarco Hinz2016-06-20
|
* Make existing tests work with new featureMarco Hinz2016-06-20
|
* test/highlight_spec: Test "gui" arg of synIDattr().Justin M. Keyes2016-06-18
| | | | Also use less "regular" values for cterm colors.
* synIDattr(): return RRGGBB value for [fg|bg|sp]# #4851Rom Grk2016-06-18
| | | | | | | | | | add tests for synIDattr() with [fg|bg|sp]# add tests for synIDattr and various #RGB colors synIDattr: test for ui_rgb_attached() test: fix tests for synIDattr fg/bg/sp
* functests: Check logs in lua codeZyX2016-06-10
| | | | | | It is otherwise impossible to determine which test failed sanitizer/valgrind check. test/functional/helpers.lua module return was changed so that tests which do not provide after_each function to get new check will automatically fail.
* test: Screen also checks 'special' when testing attribute equalityAdnoC2016-05-17
|
* test: term_close use-after-freeJustin M. Keyes2016-05-15
| | | | References #4393
* ex_terminal(): fix double-freeJustin M. Keyes2016-05-15
| | | | Closes #4554
* test: ex_terminal() double-freeJustin M. Keyes2016-05-15
| | | | References #4554
* Fix tui_spec.lua for QB/TravisKillTheMule2016-05-14
| | | | | | This was not a problem locally, but would often/sometimes/etc. (YMMV) fail on QB and/or travis. This seems to fix it. Quoting @justinmk: "I have a feeling this is just a bug in the bracketed paste special-cases in the existing code".
* Mark cursor_spec.lua indeterministic test as pendingThiago de Arruda2016-04-11
|
* tests: update tests to use [gs]et_lines instead of [gs]et_line_sliceBjörn Linse2016-04-01
|
* Rewrite hexadecimal escape sequences as decimal in lua stringsThiago de Arruda2016-03-07
| | | | | | | The hexadecimal notation is a Luajit extension which is not compatible with Lua 5.1. While Lua 5.2 does support hexadecimal sequences, it is better to target Lua 5.1 for maximum compatibility with Luajit(which has fully compatible with 5.1 API/ABI).
* Tests: fix according to lualintMarco Hinz2016-02-29
|
* functests: Make test more robustZyX2016-02-28
|
* functests: Make sure that setting scrollback size works from TermOpenZyX2016-02-28
|
* main: Make using :edit term:// run TermOpen eventZyX2016-02-28
| | | | Ref #4306
* input: Do not set high-bit; preserve ALT modifier.Justin M. Keyes2016-01-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Background: Vim internally prefers to represent ALT/META chords as single-byte keys, by setting the high bit of the key byte. extract_modifiers() _discards_ the meta/alt modifier, but we need it for libvterm and libtermkey. Closes #2440 Closes #3727 Closes #2017 References #2277 References #2254 https://github.com/neovim/neovim/issues/2017#issuecomment-140423557 > We [not libtermkey] are setting the high bit for some reason https://github.com/neovim/neovim/issues/176#issuecomment-77834715 > libvtermkey requires the leading esc to parse alt/meta https://github.com/neovim/neovim/pull/3246#issuecomment-136328450 > A program could do better than the current logic on some terminals, by > asking for pure 8bit mode (S8C1T) and then immediately querying the > mode again. If the result comes back as an 8bit single-byte CSI, then > it can presume the mode setting was successful, and now the ESC prefix > byte won't be seen in multibyte sequences; only as an Alt- prefix or > a real Escape key. On such a terminal, it could therefore avoid > needing to use that waiting timeout.
* test/functional: clean up according to luacheck (part 2)Marco Hinz2015-11-23
|
* test/functional: clean up according to luacheck (part 1)Marco Hinz2015-11-23
|
* Reorganize focus events test into individual testsJoe Hermaszewski2015-11-23
| | | | | The focus event tests now live in their own `describe` block with each test testing the handling of focus events in a single mode.
* Enable focus events in cmdline and terminal modesJoe Hermaszewski2015-11-23
| | | | | | | | | | | | | This change adds switch cases for K_FOCUSGAINED and K_FOCUSLOST to the input handling functions in ex_getln.c and terminal.c. The handling is identical to what's found in edit.c (just calling apply_autocmds). If one enters cmdline-mode by feeding `:` and sends a focuslost event (by leaving the window for example) the text `<FocusLost>` will be inserted into the command line. There is similar behaviour in terminal mode. This patch corrects this behavior to fire the apropriate autocmd instead. Fixes #3714
* Add tests for focus eventsJoe Hermaszewski2015-11-17
|
* Add TermClose eventMarco Hinz2015-11-15
| | | | | | | | A terminal buffer now exits with: [Process exited <return value>] You can hook into it. E.g. :au TermClose * call feedkeys('<cr>') Closes #2293.
* tui: Fix abort when stdout and stderr are not tty.Thiago de Arruda2015-10-29
| | | | | The abort came from using libuv tty handle on non-tty fd. Use uv_pipe_t in these cases. Also add simple test for this case.
* test: Add more TUI tests and increase timeoutThiago de Arruda2015-10-26
|
* functests: Do not forget about -i argumentZyX2015-10-23
| | | | Target: make all tests run with chmod -x ~/.config/nvim ~/.local/share/nvim.
* test: Add basic tests for the TUIThiago de Arruda2015-10-01
| | | | The tests use `termopen` to spawn nvim and verify the TUI.
* terminal: Run screen refresh timer in a deferred queueThiago de Arruda2015-09-18
| | | | Close #3332
* terminal: Fix use after freeThiago de Arruda2015-08-22
| | | | | Since close_cb may free the terminal structure, save the "wipe" flag before calling it.
* Test: synIDattr(): true color awarenessMarco Hinz2015-07-18
|
* terminal : don't set vterm size to 0 (workaround #2732)Frederik Van Slycken2015-05-31
|
* test/terminal: fix indeterminism in colorcolumn screen testBjörn Linse2015-05-10
| | | | | | | | Previously, the screen test was expecting the screen state to be identical to the previous screen test in `thelpers.screen_setup()`, which is indeterministic. (The later screen test can accidentally still see the previous identical state). The solution is to add a test for a intermediate different state.