Thiago de Arruda
ea771ac559
test: Add Screen.debug for inspecting screens of hanging tests
2015-01-13 21:21:20 -03:00
Thiago de Arruda
29bc6dfabd
ui: Add 'rgb' parameter to ui_attach
...
When set to false, nvim will send cterm color numbers with `highlight_set`.
2015-01-13 11:54:52 -03:00
Thiago de Arruda
3e83e44792
input: Ignore invalid "<" key sequences
...
Ignoring invalid key sequences simplifies input handling in UIs. The only
downside is having to use "<lt>" everytime a "<" is needed on functional tests.
2015-01-13 11:54:51 -03:00
Thiago de Arruda
17b211d288
test: Remove unnecessary command from highlight_spec
2015-01-13 11:54:51 -03:00
Thiago de Arruda
926503c84e
ui: Fix ui resizing and change some method names
2015-01-13 11:54:28 -03:00
Thiago de Arruda
fc8f768690
ui: Add update_fg/update_bg methods
...
It is necessary to notify the UI when the default background/foreground colors
change in order to render correctly.
2015-01-13 11:53:27 -03:00
Thiago de Arruda
1ccbd94bee
test: Fix clear/eol_clear in screen.lua
...
These functions need to operate on the current the scroll region.
2015-01-13 11:53:27 -03:00
Justin M. Keyes
d7e18b5c95
Revert "[WIP] "abstract_ui" fixes and improvements"
2015-01-12 10:14:52 -05:00
Thiago de Arruda
d992213678
ui: Reimplement :suspend
command for remote UIs.
...
- Remove suspend method from the UI protocol
- Handle `:suspend` by disconnecting the last channel that sent a request to
nvim.
2015-01-12 09:47:41 -03:00
Thiago de Arruda
74c247f75b
ui: Add 'rgb' parameter to ui_attach
...
When set to false, nvim will send cterm color numbers with `highlight_set`.
2015-01-12 09:47:41 -03:00
Thiago de Arruda
0219c87534
input: Ignore invalid "<" key sequences
...
Ignoring invalid key sequences simplifies input handling in UIs. The only
downside is having to use "<lt>" everytime a "<" is needed on functional tests.
2015-01-12 09:47:40 -03:00
Thiago de Arruda
d50d79831e
test: Remove unnecessary command from highlight_spec
2015-01-12 09:47:40 -03:00
Thiago de Arruda
213c3c3e53
ui: Fix ui resizing and change some method names
2015-01-12 09:47:34 -03:00
Thiago de Arruda
4f5f246a95
ui: Add update_fg/update_bg methods
...
It is necessary to notify the UI when the default background/foreground colors
change in order to render correctly.
2015-01-10 21:41:31 -03:00
Thiago de Arruda
209b5ed6ba
test: Fix eol_clear in screen.lua
...
It should only clear to the end of the current scroll region(this is the
behavior expected by nvim)
2015-01-10 21:41:31 -03:00
Justin M. Keyes
a31bcfb98a
Merge pull request #1742 from fwalch/vim-7.4.552
...
vim-patch:7.4.552
2014-12-30 00:10:26 -05:00
Justin M. Keyes
13d950f6ed
Merge pull request #1738 from fwalch/vim-7.4.549
...
vim-patch:7.4.549
2014-12-30 00:03:44 -05:00
Justin M. Keyes
ec615012a7
vim-patch:6a598be test for 7.4.487
...
https://code.google.com/p/vim/source/detail?r=6a598be6d4e8
2014-12-29 23:48:23 -05:00
Florian Walch
183b4b60b6
vim-patch:750a698
...
Add new files for 7.4.549.
https://code.google.com/p/vim/source/detail?r=750a6986aa86a2bb3346631a353913b899d86748
2014-12-27 13:16:54 +01:00
Florian Walch
e27460b60c
vim-patch:7.4.552
...
Problem: Langmap applies to Insert mode expression mappings.
Solution: Check for Insert mode. (Daniel Hahler)
https://code.google.com/p/vim/source/detail?r=v7-4-552
2014-12-26 16:54:24 +01:00
Florian Walch
e06159e6ae
vim-patch:7.4.488
...
Problem: test_mapping fails for some people.
Solution: Set the 'encoding' option. (Ken Takata)
https://code.google.com/p/vim/source/detail?r=v7-4-488
2014-12-23 21:23:49 +01:00
Florian Walch
6aecbbebfd
vim-patch:7.4.483
...
Problem: A 0x80 byte is not handled correctly in abbreviations.
Solution: Unescape special characters. Add a test. (Christian Brabandt)
https://code.google.com/p/vim/source/detail?r=v7-4-483
2014-12-23 21:23:32 +01:00
Julian Mehne
84dda11ec3
Remove superfluous settings from legacy tests.
2014-12-18 00:50:17 +01:00
Thiago de Arruda
40977e78a2
input: Recognize mouse events for abstract_ui
2014-12-10 07:51:06 -03:00
Michael Reed
365cf90efb
docs: Remove EBCDIC remnants
2014-12-09 19:25:07 -05:00
Thiago de Arruda
1192fbd08a
test: Add screen test facility
...
- Add screen.lua which implements a remote screen to verify screen state by
tests under functional/ui
- Add some basic screen/highlight tests
2014-12-09 08:36:16 -03:00
Björn Linse
6ddbe6d9be
clipboard: fix let @+ = ...
and add test
2014-12-08 22:05:05 +01:00
Björn Linse
d9639d3a9b
clipboard: add functional test
2014-12-08 22:05:05 +01:00
Justin M. Keyes
01fc0efdca
Merge pull request #1341 from splinterofchaos/api-nul
...
Api: Improve Nul handling
2014-12-06 20:19:08 -05:00
Scott Prager
cea5092f40
api: Add tests for when not to handle NULs.
2014-12-06 17:29:39 -05:00
Scott Prager
460843b4cd
api: Handle NULs and newlines in buffer_*_line.
2014-12-06 17:29:38 -05:00
Julian Mehne
42891ea9d9
Make migrated test33 more similar to old legacy test.
...
Remove `expandtab` and add a missing trailing space from the legacy test.
2014-12-06 13:43:14 +01:00
Thiago de Arruda
a31b06c44d
deps: Update lua client
2014-12-05 14:23:37 -03:00
Björn Linse
b3151af69c
systemlist: test empty lines in beginning and middle of output
2014-12-02 16:53:16 +01:00
Björn Linse
1464b0eda2
systemlist: add keepempty
option to preserve final newline
2014-12-02 16:50:52 +01:00
Scott Prager
275f6e3a6b
mch_early_init() -> early_init().
...
Move general initialization functions to early_init, which simplifies
test/unit/helpers.lua, which requires all these functions.
2014-11-28 14:27:58 -05:00
Rui Abreu Ferreira
84eb118f62
Functional tests for feedkeys CSI escaping
...
- tests for vim_feedkeys and replace_termcodes
2014-11-27 08:33:53 -03:00
John Szakmeister
78618d742b
Avoid printing an error response when detecting xclip.
...
While we're at, using the slightly more portable `command -v` technique
to detect the executable. Also, there's no need to use `io.popen()` if
we aren't going to record the path. Instead, let's use the simpler
`os.execute()` to detect the presence of xclip.
2014-11-26 17:31:51 -05:00
Justin M. Keyes
c83dfa20bd
Merge pull request #1543 from jszakmeister/fix-broken-functional-tests
...
Fix broken functional test.
2014-11-25 17:06:53 -05:00
Thiago de Arruda
99809903bb
deps: Update bundled lua client version
...
The new version fixes defunct processes which causes random test failures on
some systems(#1519 )
2014-11-25 14:47:54 -03:00
John Szakmeister
db914e8b61
Fix broken functional test.
...
In Lua, all math is floating point. We need to coerce the result of a
division into a integer with the `{get,set}_height` and
`{get,set}_width` window_spec functional tests.
2014-11-25 06:11:43 -05:00
Thiago de Arruda
aa22612112
test: Add gdbserver support on helpers.lua
...
The $GDB env var can be set to run tests under gdbserver. If $VALGRIND is also
set, it will add the --vgdb=yes command-line option to valgrind instead of
starting gdbserver.
2014-11-23 08:56:43 -03:00
Eliseo Martínez
1f2c197ebe
Fix functional-test-105 failure in OSX.
...
See https://github.com/neovim/neovim/issues/1519 for failure report.
Cause : In OSX, /tmp is a symbolic link to /private/tmp, which causes
expected and got results different because of implicit
resolution.
Solution : Resolve path before setting expected value.
2014-11-21 22:08:16 +01:00
Thiago de Arruda
230c935e73
test: Fix problems in job_spec.lua
...
Nvim wasn't exiting cleanly in some job tests due to errors.
This can't be noticed until the next commit, which will perform a refactoring to
selectively process K_EVENT, so the `qa!` command executed at the end of each
test blocks forever if there are errors which require the user to press ENTER(in
that state Nvim no longer will process events).
2014-11-21 15:39:04 -03:00
Thiago de Arruda
179c51319d
test: Refactor functional helpers to use vim_input
...
The vim_input function accepts raw terminal input and so is better to emulate
real user, especially because it is not deferred as vim_feedkeys.
Using this function required a number of changes:
- expect() was refactored to use curbuf_contents()
- The vim_eval function in request() was moved to curbuf_contents(). For most
cases this is enough(we only care for synchronizing api calls with user input
when verifying buffer contents).
- <C-@>(NUL) is preprocessed before being passed to replace_termcodes.
- Legacy test 4 had a bug that only became visible when using vim_input, it is
fixed now.
- An extra blank line deletion was required for test 101
The last two items show that vim_feedkeys because it is not 100% equivalent to
receiving terminal input.
2014-11-21 15:39:04 -03:00
Thiago de Arruda
6b17082d3c
runtime: Refer to plugins running outside Nvim as "remote plugins"
...
- Rename autoload/rpc to autoload/remote
- External plugins are now remote plugins
- External plugins directory is "rplugin"
2014-11-21 10:11:42 -03:00
Rainer Borene
df5a17fb51
legacy tests: migrate test105
2014-11-20 21:06:37 -03:00
Rainer Borene
da3ade6a59
legacy tests: migrate test26
2014-11-20 21:06:37 -03:00
Rainer Borene
021d9bdcc0
legacy tests: migrate test101
2014-11-20 21:06:37 -03:00
Rainer Borene
50876c2f70
legacy tests: migrate test75
2014-11-20 21:06:37 -03:00