Björn Linse
b78265e9b7
test/ui: enable strict mode by default (and in existing tests)
2015-02-02 14:56:58 -03:00
Björn Linse
97ac9f5c1d
test/ui: more informative "unexpected highlight" errors
2015-02-02 14:56:58 -03:00
John Szakmeister
9023f62707
Fix the ctrl + left click test.
...
The test was hoping to not find a tags file, but didn't actively guard
against it. In my case, I had a tags file present which was causing
different output to be generated. To fix this, let's set the tags
option to look for an unlikely filename.
2015-01-28 17:48:36 -05:00
Thiago de Arruda
cbc23d93b9
test: Make default screen timeout depend on the VALGRIND env var
...
While running under valgrind, the screen can take significantly longer to
update(especially on travis) so a higher timeout can be required. Also reduce
the timeout when not running on valgrind.
2015-01-23 19:00:45 -03:00
Thiago de Arruda
41225fe4f6
test: Fix hanging test suite after failures
...
When a test that fails leaves nvim in a 'Press Enter...' state, the whole suite
will hang because the `qa!` command executed before the next test won't be
processed until '<enter>' is sent.
Now the lua client can send a signal with when `Session:exit()` is called, so
the `qa!` request is no longer necessary.
Also:
- Set noswapfile at startup to prevent tests from leaving .s* swap files(should
also improve test environment determinism)
- Use `assert(false, msg) instead of `error(msg)` to report screen assertion
failures.
2015-01-23 18:58:19 -03:00
Björn Linse
a9048896b3
tests/ui: strict mode
2015-01-23 07:47:48 -03:00
Björn Linse
5c837f613e
tests/ui: snapshot util
2015-01-23 07:47:48 -03:00
Thiago de Arruda
f08fe552f4
test: Fix screen.lua eol_clear method.
2015-01-22 08:54:37 -03:00
Thiago de Arruda
dc18fa256f
test: Add more functional test to cover new code
...
- emulate gui_running and terminal colors
- scrolling/clearing regions
- mouse wheel scrolling
- setting icon/title
- :stop/:suspend
- screen resize
2015-01-15 09:01:25 -03:00
Thiago de Arruda
8596776bf6
ui: Implement set_{title,icon}
2015-01-14 08:31:20 -03:00
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
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
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
Thiago de Arruda
40977e78a2
input: Recognize mouse events for abstract_ui
2014-12-10 07:51:06 -03: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