aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds
Commit message (Collapse)AuthorAge
...
* test/functional: cd_spec: Add tests for using explicit argsJames McCoy2016-06-01
|
* test/functional: cd_spec: Use named keys for directories tableJames McCoy2016-06-01
| | | | | | The directories table contains the names of the expected directory names for varying scopes of the :cd tests. Using named indexes, instead of numbered, makes the test more readable.
* test/functional: Allow arbitrary arguments to cwd/lwd functionsJames McCoy2016-06-01
| | | | | | Build wcwd/tcwd and wlwd/tlwd on top of the reworked cwd/lwd functions. This will allow for easier testing of `getcwd()`/`haslocaldir()` in arbitrary windows and/or tab pages.
* test/functional: fix a dependency on the previous test suiteJohn Szakmeister2016-05-06
| | | | | | | While trying to debug an issue, I discovered that the tests for illegal arguments depended on the prior suite having run and started a session. Let's remove that unintentional dependency by starting our own session before each test.
* test/functional: prefix the cd command with silent to prevent hangingJohn Szakmeister2016-05-06
| | | | | In longer directory paths, the test can hang waiting for the user to hit enter to continue. Let's use the silent prefix to avoid this.
* Merge pull request #4654 from KillTheMule/testlintJustin M. Keyes2016-05-06
|\ | | | | Satisfy testlint.
| * Satisfy testlint.KillTheMule2016-04-28
| | | | | | | | For that, make luatest ignore the preload.lua files.
* | ex_getln: Do not crash with :append/:insert/:changeZyX2016-04-29
| | | | | | | | | | | | | | This change effectively disables history for lines inserted using this method. Not a big problem since it does not work for them in Vim in first place. Also solves a bug(?): ex_window() run while in :append mode opens search history in Vim for some reason. Now it opens empty cmdline window.
* | Remove old UNIX ifdef from buf_write()Rui Abreu Ferreira2016-04-28
|/ | | | | | | | | | | When backupcopy=auto buf_write assumes backupcopy=yes when the file is a hard/symbolic link. However this check was guarded by a UNIX ifdef. The check itself is portable and the guard can be removed. Added a couple tests to check the behaviour of bkc=auto and bkc=no with a symbolic link. Reported in #4525
* tcd: doc, error messagesJustin M. Keyes2016-04-21
|
* Implement tab-local working directory feature.HiPhish2016-04-20
| | | | | | | | | | | | | | | | | New ex commands: 'tcd', 'tchdir' Changed Vimscript functions: 'haslocaldir', 'getcwd' The ex-commands ':tcd' and ':tchdir' are the tab-local equivalents of ':lcd' and ':lchdir'. There are no new Vimscript functions introduced, instead the functions 'haslocaldir' and 'getcwd' take in optional arguments. See the documentation for details Since there is now different levels of local directory a simple boolean at source level is no longer sufficient; a new enumeration type is used for the scope-level from now on. The documentation has been accommodated for these new commands and functional tests have been written to test the feature.
* tests: fix indeterministic oldfiles! testBjörn Linse2016-04-14
|
* Update lua client to 0.0.1-24Thiago de Arruda2016-04-13
| | | | | The new version of the lua client uses libmpack as a backend, and some test scripts had to be updated to reflect that.
* Remove indeterminism in oldfiles_spec.luaThiago de Arruda2016-04-11
| | | | | If Nvim is in a "Press ENTER..." screen before the `get_vvar()` call, the test will hang.
* encoding: update testsBjörn Linse2016-01-02
|
* test/functional: clean up according to luacheck (part 2)Marco Hinz2015-11-23
|
* Workaround the unstable ordering of v:oldfiles in some more tests.John Szakmeister2015-11-16
| | | | | | Fixes #3676. Reviewed-by: Marco Hinz <mh.codebro@gmail.com>
* Test: improve functional/ex_cmds/oldfiles_spec.luaMarco Hinz2015-11-11
| | | | | | | | | | - change approach for test 1: screen:expect() instead of assert() - use execute() instead of command() - 2 new tests that check none and wrong input for :oldfiles! Helped-by: @fwalch Helped-by: @tarruda Helper-by: @justinmk
* Add tests for :oldfilesMarco Hinz2015-11-10
|
* Add test/functional/ex_cmds/profile_spec.luaMarco Hinz2015-11-10
| | | | | | | This adds two new tests for: :profile dump :profile stop
* undo: Remove incorrect NONNULL_ALL attributeZyX2015-11-05
| | | Fixes #3605
* functests: Fix testsZyX2015-10-23
|
* functests: Do not forget about -i argumentZyX2015-10-23
| | | | Target: make all tests run with chmod -x ~/.config/nvim ~/.local/share/nvim.
* functests: Make one recover_spec test also use gdb or valgrindZyX2015-10-08
|
* Deprecate &viminfo and :[rw]v, add &shada and :[rw]shZyX2015-10-08
|
* Replace references to viminfo in various placesZyX2015-10-08
|
* test: menu_spec: avoid screen test.Justin M. Keyes2015-10-04
| | | | | Redraw can be flaky especially when remote commands happen during command-mode. Assert the state directly instead of using Screen.
* menu: support :emenu invoked by cmenu map.bambu2015-10-03
|
* loop: Free the parent queue last when destroying the loopThiago de Arruda2015-09-16
| | | | This avoids a heap-use-after-free ASAN error. Close #3334
* encoding: test that `&encoding` cannot be changedBjörn Linse2015-09-08
| | | | Helped-By: Justin M. Keyes <justinkz@gmail.com>
* test: cover :grepJustin M. Keyes2015-08-11
| | | | References #3156
* menu: Fix :emenu mode detection #2992Robin Allen2015-07-22
| | | | | | | | | | | | | A menu item can have separate bindings for each Vim mode. :emenu checks to see which binding it should execute. But, it assumes it can only be called from Normal mode, so its mode detection is based on some guesswork. For instance, it detects if you've just used C-O and, if so, uses the Insert mode binding. Now that :emenu can be called from any mode (via vim_command), this commit has it check the actual mode we're in, and simply use the binding for that mode if we aren't in Normal mode.
* Test: fix functional/ex_cmds/recover_spec.luaMarco Hinz2015-07-20
| | | | | | | | | os.remove() wasn't removing the temporary swap directory which leads to problems when the test is run a second time. That's also the reason why the CI never caught this. os.remove() got replaced by helpers.rmdir().
* tests: Use new write_file() function in tests.Lucas Hoffmann2015-06-30
|
* tests: wviminfo_spec.lua: reworkJustin M. Keyes2015-06-12
| | | | 074_global_var_in_viminfo_spec: remove some redundant sanity checks.
* tests: Add tests for the :wv command.Lucas Hoffmann2015-06-12
|
* test regression: recover_spec.luaJustin M. Keyes2015-04-12
|
* test: Add missing `before_each` call to sign_spec.luaThiago de Arruda2015-03-28
| | | | | | | Without this the test will inherit the previous test environment, causing random failures. Close #2243
* fix #1027: :wundo segfault in new, non-empty bufferJustin M. Keyes2014-10-26
|
* fix 'sign unplace id'Kartik K. Agaram2014-10-28
Since the introduction of the FOR_ALL_BUFFERS macro, 'sign unplace id' without a buffer was only removing the sign from the first buffer rather than all buffers, as described in the documentation. :help sign-unplace -- modeline discussion: https://github.com/akkartik/neovim/commit/7863c247db#commitcomment-8342590