aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* vim-patch:7.4.503 #2178Perry Hung2015-03-20
| | | | | | | | | | | | | | | | Problem: Cannot append a list of lines to a file. Solution: Add the append option to writefile(). (Yasuhiro Matsumoto) https://code.google.com/p/vim/source/detail?r=v7-4-503 -Ported old legacy test over to test/functional/legacy/writefile_spec.lua -Tests for mapping and signs from the original patch were removed since they have nothing to do this with feature Tested with: make oldtest, make test on OS X. Signed-off-by: Perry Hung <iperry@gmail.com>
* tests/ui: cleanup ignores in screen_basic_specBjörn Linse2015-03-19
|
* tests/legacy: convert test 63 (`:match` and `matchadd()` )Björn Linse2015-03-19
|
* tests/ui: test hlsearch and incsearchBjörn Linse2015-03-19
|
* ui: Refactor so that busy state won't be the defaultThiago de Arruda2015-03-18
| | | | | | | | | | | Even though assuming nvim is busy most times is simpler, it has a problem: A lot of unnecessary busy_start/busy_stop notifications are sent to the UI. That's because in the majority of scenarios almost no time is spent between `event_poll` calls. This restores the normal behavior which is to call busy_start only when nvim is going to perform some task that can take a significant amount of time. Also improve the usage of buffering in the TUI when changing the cursor state.
* legacy tests: migrate test19Gustaf Lindstedt2015-03-16
|
* legacy tests: migrate test89Gustaf Lindstedt2015-03-16
|
* test: Only display cursor marker in screen tests if nvim is not busyThiago de Arruda2015-03-16
|
* ui: Replace cursor_{on,off} by busy_{stop,start}Thiago de Arruda2015-03-15
| | | | | | | | | | | | | | | | | | | | | | | | Switching cursor off is only necessary in two occasions: - When redrawing to avoid terminal flickering - When the editor is busy The first can now be handled by the TUI, so most calls to ui_cursor_off can be removed from the core. So, before this commit it was only necessary to switch the cursor off to notify the user that nvim was running some long operation. Now the cursor_{on,off} functions have been replaced by busy_{stop,start} which can be handled in a UI-specific way(turning the cursor off or showing a busy indicator, for example). To make things even more simpler, nvim is always busy except when waiting for user input or other asynchronous events: It automatically switches to a non-busy state when the event loop is about to be entered for more than 100 milliseconds. `ui_busy_start` can be called when its not desired to change the busy state in the event loop (As its now done by functions that perform blocking shell invocations).
* tests: fix 005_bufleave_delete_buffer_spec.luaJustin M. Keyes2015-03-11
| | | | | | | | | - After _spec suffix was added so busted could find the test, it failed. - The original legacy test wrote to a "test.out", but the new test uses register @A. - Original test did not contain 1d and new test shouldn't either. ref c152cdd0f34c10b3d3a8007838561556578685c6
* tests: add missing "_spec" suffixJustin M. Keyes2015-03-11
|
* legacy tests: migrate test84Rainer Borene2015-03-11
|
* legacy tests: migrate test91Rainer Borene2015-03-11
|
* legacy tests: migrate test90Rainer Borene2015-03-11
|
* legacy tests: migrate test95Rainer Borene2015-03-11
|
* legacy tests: migrate test15Rainer Borene2015-03-11
|
* legacy tests: migrate test_listlbr_utf8Rainer Borene2015-03-11
|
* legacy tests: migrate test98Rainer Borene2015-03-11
|
* legacy tests: migrate test103Rainer Borene2015-03-11
|
* legacy tests: migrate test_qf_titleRainer Borene2015-03-11
|
* legacy tests: migrate test100Rainer Borene2015-03-11
|
* tests/ui: Also test character at cursorBjörn Linse2015-03-09
|
* Merge pull request #2082 from jszakmeister/fixes-for-busted-and-luajitJohn Szakmeister2015-03-09
|\ | | | | tests: prevent busted from reloading the ffi module and others
| * tests: prevent busted from reloading the ffi module and othersJohn Szakmeister2015-03-01
| | | | | | | | | | | | | | | | | | | | | | It turns out that Busted started cleaning the environment in 2.0rc5 as a result of Olivine-Labs/busted#62. This, in turn, caused the ffi module to be reloaded for each spec file, and LuaJIT doesn't appreciate it. The net effect is an assertion error in LuaJIT. By using the --helper feature of Busted, we can pre-load some modules ahead of Busted and prevent it from reloading them--making LuaJIT happy again.
* | test: migrate legacy test 77 #2046Gustaf Lindstedt2015-03-08
| | | | | | | | Migrate legacy test 77 which tests mf_hash_grow() to lua/busted.
* | jobsend: Don't append extra newline after last itemBjörn Linse2015-03-03
|/ | | | This allows sending binary data that is not newline terminated
* Merge pull request #2075 from jszakmeister/dont-hardcode-tty-test-pathJohn Szakmeister2015-03-01
|\ | | | | tests: don't hardcode the path to tty-test
| * tests: don't hardcode the path to tty-testJohn Szakmeister2015-02-28
| | | | | | | | | | This fixes the build for those who drive the build directly using CMake.
* | tests: require luassert in the helpersJohn Szakmeister2015-03-01
|/ | | | | | | | This is necessary for newer versions of Busted, otherwise assert will be nil and the tests will die. Note: this does not mean the tests now work with the latest Busted. There are still several issues preventing that from happening.
* test: mark job/pty test as pending #2058Numkil2015-02-26
| | | | | - closes #2057 - see https://github.com/neovim/neovim/issues/2057 for discussion
* job: Allow spawning jobs connected to pseudo terminalsThiago de Arruda2015-02-23
|
* eval: Fix buffering of data in job autocommandsThiago de Arruda2015-02-23
| | | | | Job autocommands will no longer buffer data chunks that don't end in newlines characters.
* refactor: Remove term modules and termcap optionsThiago de Arruda2015-02-21
| | | | | | | | | | | | | | | - Removed term.c, term.h and term_defs.h - Tests for T_* values were removed. screen.c was simplified as a consequence(the best strategy for drawing is implemented in the UI layer) - Redraw functions now call ui.c functions directly. Updates are flushed with `ui_flush()` - Removed all termcap options(they now return empty strings for compatibility) - &term/&ttybuiltin options return a constant value(nvim) - &t_Co is still available, but it mirrors t_colors directly - Remove cursor tracking from screen.c and the `screen_start` function. Now the UI is expected to maintain cursor state across any call, and reset it when resized. - Remove unused code
* test: Add extra screen expectation to prevent race conditionThiago de Arruda2015-02-20
| | | | | This is to ensure ctrl+c is only pressed after the command has started executing in the viml_system_spec.lua system() interrupt test.
* test: Remove temporary files created by 072_undo_file_spec.luaThiago de Arruda2015-02-20
|
* test: Remove -g flag from pynvim call in Screen.debugThiago de Arruda2015-02-20
| | | | The flag is no longer valid(pynvim always starts a GUI)
* legacy test: migrate test 72Fabian Brosda2015-02-20
|
* input: Escape utf8 sequences that contain CSI/K_SPECIALThiago de Arruda2015-02-18
|
* Add TabClosed eventFelipe Morales2015-02-16
| | | | TabClosed is triggered when a tab page closes.
* Add TabNewEnteredFelipe Morales2015-02-16
| | | | TabNewEntered is triggered after vim has entered a buffer in new tab.
* Add TabNew eventFelipe Morales2015-02-16
| | | | | TabNew triggers when entering a new tab page, but not when entering an already created one.
* test: Fix 051_highlight_spec.luaThiago de Arruda2015-02-16
| | | | | | - The syntax `gui=` is invalid when setting properties of highlight group. - Wait for the initial "-- More --" prompt before continuing. Required to avoid a race condition
* syntax: Refactor to store all term and gui attributes independentlyThiago de Arruda2015-02-16
| | | | | Now the attrentry_T structure will store all attributes in separate fields for cterm and rgb UIs.
* test: Increase default_screen_timeout when running on travisThiago de Arruda2015-02-16
| | | | | | Some screen tests such as system/ctrl+c(viml_system_spec.lua) can take some time to respond(default kill timeout is 2 seconds for an interrupted job) and fail when running under a slow environment such as travis.
* test: Remove unnecessary tests from viml_system_spec.luaThiago de Arruda2015-02-16
| | | | | | The `system` function is never executed with these tests because the ctrl+c is queued with the input string that calls it(The `process_interrupts` function will destroy all previous input when a ctrl+c is found).
* test: Fix race condition in window_spec.luaThiago de Arruda2015-02-16
| | | | | Without waiting for the 'gg' command to be processed, its possible that the following assertion will fail.
* test: Add synchronization helper for functional testsThiago de Arruda2015-02-16
| | | | | The `wait` function will only return after all input has been processed by nvim. It is useful to time assertions correctly.
* api: always return empty string as api type StringBjörn Linse2015-02-16
|
* test: NULL-initialized vimscript strings should eval to empty stringsBjörn Linse2015-02-16
|
* FEAT_SIGNS: restore :signs wildmenu, and add test.Justin M. Keyes2015-02-15
|