aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* | test: call scandir_next_with_dots() more than onceJustin M. Keyes2015-08-01
| | | | | | | | Also cosmetic reduction.
* | Add the . and .. entries to glob()Felipe Morales2015-08-01
| | | | | | | | | | | | | | os_scandir() and os_scandir_next() skip over those, because of the unverlying libuv funcitons behaviour. Fixes #2954
* | tui: Use underline cursor in Replace modeOmar Sandoval2015-07-26
| | | | | | | | | | | | | | This is a port of my original contribution to Vim, added in 7.4.687 (https://github.com/vim/vim/commit/v7-4-687). The TUI code has been heavily refactored (see esp. 25ceadab37edba13f5afa78d8b4723da03ef35f0), so this required some translation, but the logic is the same.
* | api: Simplify UI API on mode changeOmar Sandoval2015-07-26
| | | | | | | | | | | | | | Currently, there are two functions in the UI API that are called when the mode changes: insert_mode() and normal_mode(). These can be folded into a single mode_change() entrypoint which can do whatever it wants based on the mode it is passed, limited to INSERT and NORMAL for now.
* | os/fs: Move mkdir_recurse from eval.c to os/fs.cZyX2015-07-26
| |
* | Add ui test for default title (with/without filename) #3091Björn Linse2015-07-23
| |
* | 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.
* | tests: Migrate legacy test 80. #2989Lucas Hoffmann2015-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test is also split in several blocks and heavily modernized. This was done to prevent the following quoting and escaping problems during migration: - the vim command `put =...` treats double quotes as the start of a comment so they have to be escaped with a backslash - when inserting control characters on the command line they have to be escaped with <C-V> The parts one and two of the test are functional identical so they are wrapped in a local function. The only difference was which letters where used to test the same feature. Part six did test a flag in 'cpoptions' that has been removed in neovim. It has therefore been removed as well. Reviewed-by: Michael Reed <Pyrohh@users.noreply.github.com>
* | clipboard: add tests for error fallback and middleclick pasteBjörn Linse2015-07-20
| |
* | 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().
* | Test: add new helper function: rmdir()Marco Hinz2015-07-20
| | | | | | | | | | | | | | | | | | - lfs.rmdir() only removes empty directories - os.remove() supercedes lfs.rmdir(); removes files and empty directories - helpers.rmdir() first removes all files within a directory, then the directory itself
* | Implement API function to call functions #2979Sebastian Witte2015-07-19
| | | | | | | | | | Remove static modifier from func_call Move MAX_FUNC_ARGS definnition from eval.c to eval.h
* | tests: Split migrated test 57.Lucas Hoffmann2015-07-19
| |
* | tests: Migrate legacy test 57.Lucas Hoffmann2015-07-19
| |
* | Test: synIDattr(): true color awarenessMarco Hinz2015-07-18
|/
* event loop: New abstraction layer with refactored time/signal APIThiago de Arruda2015-07-17
| | | | | | | | | | - Add event loop abstraction module under src/nvim/event. The src/nvim/event/loop module replaces src/nvim/os/event - Remove direct dependency on libuv signal/timer API and use the new abstraction instead. - Replace all references to uv_default_loop() by &loop.uv, a new global variable that wraps libuv main event loop but allows the event loop functions to be reused in other contexts.
* test: lower sleep value in job testThiago de Arruda2015-07-16
| | | | | Since sleep is a grandchild of nvim, it is not killed after the test ends. Using a low sleep value allows it to exit automatically after a small interval.
* test: Increase determinism in screen_basic_spec testsThiago de Arruda2015-07-16
|
* tests: Style improvements and Makefile fix for migrated test 60. #2975Lucas Hoffmann2015-07-16
|
* test: buffer_spec: fix set_line invocationJustin M. Keyes2015-07-11
| | | | | - pcall result was always false because of wrong arity - also re-arrange tests into it() blocks
* test: api: exercise out-of-bounds line slicingNick Hynes2015-07-11
|
* tests: Modernize migrated legacy test 62.Lucas Hoffmann2015-07-11
| | | | | | | | | | - use eval() and eq() in many places instead of writing to the buffer - remove has('autocmd') checks and use corresponding code unconditionally as neovim always has the autocmd feature - split the test into several it() blocks Helped-By: Scott Prager <splinterofchaos@gmail.com> Helped-By: Michael Reed <m.reed@mykolab.com>
* tests: Migrate legacy test 62.Lucas Hoffmann2015-07-11
|
* Merge pull request #2932 from lucc/helpers/write_fileMichael Reed2015-07-06
|\ | | | | | | | | | | [RDY] tests: Add write_file helper function Reviewed-by: Florian Walch <florian@fwalch.com> Reviewed-by: Michael Reed <m.reed@mykolab.com>
| * tests: Use new write_file() function in tests.Lucas Hoffmann2015-06-30
| |
| * tests: Use write_file() in source().Lucas Hoffmann2015-06-30
| |
| * tests: Add helpers.write_file() to write short files.Lucas Hoffmann2015-06-30
| |
* | clipboard: don't overwrite before pasting in visual mode. #2945Björn Linse2015-07-04
| | | | | | | | | | This occured when clipboard=unnamedplus and doing "+p in visual mode. Fixes #2942.
* | rbuffer: Reimplement as a ring buffer and decouple from rstreamThiago de Arruda2015-07-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract the RBuffer class from rstream.c and reimplement it as a ring buffer, a more efficient version that doesn't need to relocate memory. The old rbuffer_read/rbuffer_write interfaces are kept for simple reading/writing, and the RBUFFER_UNTIL_{FULL,EMPTY} macros are introduced to hide wrapping logic when more control is required(such as passing the buffer pointer to a library function that writes directly to the pointer) Also add a basic infrastructure for writing helper C files that are only compiled in the unit test library, and use this to write unit tests for RBuffer which contains some macros that can't be accessed directly by luajit. Helped-by: oni-link <knil.ino@gmail.com> Reviewed-by: oni-link <knil.ino@gmail.com> Reviewed-by: Scott Prager <splinterofchaos@gmail.com> Reviewed-by: Justin M. Keyes <justinkz@gmail.com> Reviewed-by: Michael Reed <m.reed@mykolab.com>
* | test: Ensure proper initialization in unit/helpers.luaThiago de Arruda2015-07-01
|/ | | | | Remove helpers.vim_init and simply perform the required initialization in helpers.lua.
* rplugin: allow users to register hosts #2896Nick Hynes2015-06-25
|
* api: vim_set_var() should return the old value #2899Justin M. Keyes2015-06-25
| | | | Closes #2816
* tests: 061_undo_tree_spec: minor editsJustin M. Keyes2015-06-22
|
* tests: Repeat a flaky part of the migrated test 61.Lucas Hoffmann2015-06-22
| | | | | | This is the part of the test that relies on wall clock time and sometimes fails if the system is under load. The test is repeated up to three times before a failure is reported to the user.
* tests: Split test 61 into several it() blocks.Lucas Hoffmann2015-06-22
|
* tests: Fix an further simplify migrated test 61.Lucas Hoffmann2015-06-22
| | | | | | | | :undojoin can only be used inside scripts and command chains. So it has to be tested inside an explicit `source()` call. Also add a new test case for the different behavior when sourceing normal mode commands from a script or inserting them interactively.
* tests: Don't set ul in migrated test 61.Lucas Hoffmann2015-06-22
| | | | | | | | | | The legacy test uses `set ul=100` to break the changes into blocks that can be undone separately. This is needed because the legacy test is sourced from a file and changes would be grouped into on undo block by default. The lua test suite does not have this restriction. Also add a new test case to test this effect of using `set ul=100` in a sourced script.
* tests: Migrate legacy test 61.Lucas Hoffmann2015-06-22
| | | | | | | | | | | | | | | | | | This test is real time based as it also tests the `:earlier` and `:later` commands with time arguments (using `:sleep`). This can sometimes case the test to fail on systems that are under heavy load or where the time interval between creating the expected buffer state and the `:earlier` or `:later` command that tries to jump to it changes. To be system independent we use nvim's `:sleep` command and `wait()` for it in the test suit. The legacy vim test writes to test.out a lot with `:.w >>test.out`. This does currently not work in the lua test suite so the test is modernized to use busted's assertions instead of the output file. This test was treated special in the legacy Makefile but after the conversion the related code can be removed.
* doc: Fix some typos and trailing whitespace. #2875Lucas Hoffmann2015-06-21
|
* defaults: enable 'hlsearch' by default. #2859Justin M. Keyes2015-06-20
| | | | | | Also update the documentation regarding the option. Re: https://github.com/neovim/neovim/issues/2676
* defaults: enable 'autoindent' #2857Felipe Morales2015-06-20
| | | | Re: https://github.com/neovim/neovim/issues/2676
* defaults: enable 'smarttab' by default. #2855Felipe Morales2015-06-20
|
* completion: Initialize v:completed_item #2839Shougo Matsushita2015-06-20
| | | | | v:completed_item should always be a dict (not empty string), even before the first completion.
* tests: Modernize migrated argument_count test.Lucas Hoffmann2015-06-16
|
* tests: Migrate legacy test argument_count.Lucas Hoffmann2015-06-16
|
* tests: Modernize migrated legacy test argument_0count.Lucas Hoffmann2015-06-16
|
* tests: Migrate legacy test argument_0count.Lucas Hoffmann2015-06-16
|
* 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
|
* tests: Migrate legacy test 74.Lucas Hoffmann2015-06-12
| | | | | Helped-By: David Bürgin <676c7473@gmail.com> Helped-By: Justin M. Keyes <justinkz@gmail.com>