Thiago de Arruda
5d185c7772
test: Add basic tests for the TUI
...
The tests use `termopen` to spawn nvim and verify the TUI.
2015-10-01 15:22:49 -03:00
Thiago de Arruda
1143b416ab
tui: Don't use 'pastetoggle' for automatic pasting
...
Add a new special key that can be used by UIs to toggle the 'paste' option and
use it in the TUI instead of the user's 'pastetoggle' value.
Close #2843 #2092
2015-10-01 15:22:48 -03:00
Thiago de Arruda
c1edd07990
shell: Ensure silent bang mappings won't cut output
...
Setting `msg_didout` after `call_shell` is enough as it will cause
`hit_return_msg()` to print on next line.
Close #3269
2015-10-01 15:22:48 -03:00
John Szakmeister
625f8ec07f
Disable a broken functional test.
...
No one has taken a real interest in fixing this, so let's disable it for
now. The issue crops up most on the QB OS X node, but it has
periodically occurred under other nodes too.
2015-10-01 07:01:13 -04:00
ZyX
0be94d1e5a
functests: Do not use user viminfo file
2015-09-30 10:09:27 +03:00
ZyX
6da3fadd9f
eval/msgpackdump(): Use copyID for protecting against recursive input
...
Should be faster then O(depth) iteration, but removes const qualifiers.
2015-09-30 10:09:21 +03:00
Florian Walch
54596396bc
test: Check for installed Python module with Vimscript function.
...
Use the existing Vimscript function provider#pythonx#Detect()
to determine whether the Neovim Python module is installed and
Python 2/3 tests can be run.
2015-09-27 00:03:06 +02:00
Justin M. Keyes
b22b568266
test: K, 'keywordprg'
2015-09-23 00:06:27 -04:00
ZyX
c6102f9a9f
functests: Test how msgpack\* functions behave with invalid input
2015-09-19 01:54:43 +03:00
ZyX
e881a20dfb
functests: Split msgpack\* function tests into three groups:
...
- Tests that use both functions.
- Tests that use msgpackparse().
- Tests that use msgpackdump().
2015-09-19 01:54:43 +03:00
ZyX
10fd95a9ea
functests/helpers: Add exc_exec function that checks the exception
2015-09-19 01:54:43 +03:00
Thiago de Arruda
47cbbc0b8c
terminal: Run screen refresh timer in a deferred queue
...
Close #3332
2015-09-18 14:35:26 -03:00
Thiago de Arruda
c708061a5a
os/path: Fix path_get_absolute_path for top-level paths
...
Close #2833
2015-09-18 14:35:26 -03:00
Björn Linse
c8aaabc09c
api: vim_err_write: add tests for multiline handling
2015-09-16 21:42:57 +02:00
Thiago de Arruda
22ea2900d0
loop: Free the parent queue last when destroying the loop
...
This avoids a heap-use-after-free ASAN error. Close #3334
2015-09-16 02:52:55 -03:00
Björn Linse
087f3bacaf
encoding: test that &encoding
cannot be changed
...
Helped-By: Justin M. Keyes <justinkz@gmail.com >
2015-09-08 10:56:15 +02:00
Björn Linse
ffff2c9c47
encoding: Update handling of encoding in tests
...
Always run tests with encoding=utf-8, regardless of user locale
Don't set &encoding after startup in tests
Helped-By: Michael Reed <m.reed@mykolab.com >
2015-09-08 10:54:31 +02:00
Felipe Morales
acdac914d5
clipboard: avoid clipboard during :global. #2809
...
This is equivalent to patches 7.4.396, 7.4.445 and 7.4.598.
vim-patch:7.4.396
Problem: When 'clipboard' is "unnamed", :g/pat/d is very slow.
(Praful)
Solution: Only set the clipboard after the last delete. (Christian
Brabandt)
1f285eb49a
vim-patch:7.4.445
Problem: Clipboard may be cleared on startup.
Solution: Set clip_did_set_selection to -1 during startup. (Christian
Brabandt)
1a19d37d90
vim-patch:7.4.598
Problem: ":tabdo windo echo 'hi'" causes "* register not to be
changed.
(Salman Halim)
Solution: Change how clip_did_set_selection is used and add
clipboard_needs_update and global_change_count. (Christian
Brabandt)
af6a579263
Co-Author: @bfredl
2015-08-30 23:40:12 -04:00
Björn Linse
2b6d1546ec
test59: Store all text as utf-8 and convert when needed
2015-08-26 10:31:26 +02:00
Björn Linse
f666b2cb12
test59: Make "syntax off" explicit, as default may change with #2675
...
Helped-By: Felipe Morales <hel.sheep@gmail.com >
2015-08-26 10:31:02 +02:00
Björn Linse
d4fae57a4c
test59: Fixup incorrectly encoded utf-8
2015-08-26 10:30:55 +02:00
Lucas Hoffmann
a412e72a2f
test59: Split tests into 1-1, etc
...
Helped-By: Björn Linse <bjorn.linse@gmail.com >
Fixed some output issues
2015-08-26 10:30:48 +02:00
Lucas Hoffmann
c7d58e7a56
test59: Turn the VimL test function into a lua function.
...
Helped-By: Björn Linse <bjorn.linse@gmail.com >
`spelldump | quit` must be in a function
2015-08-26 10:30:44 +02:00
Lucas Hoffmann
f3c67a617e
test59: Write spell files from lua and use cp to get the right files in place
...
Use teardown to remove these temporary files
2015-08-26 10:30:44 +02:00
Lucas Hoffmann
ffe88f0d52
test59: Save source file in utf8, this will mess up a lot of characters.
2015-08-26 10:30:34 +02:00
Lucas Hoffmann
144b4954f7
test59: Turn function definition into source() call.
2015-08-26 10:30:30 +02:00
Lucas Hoffmann
e60e46596a
test59: Inital clean up.
...
Fix some feed() calls and string delimiters
Fix trimming of buffer before final expect().
2015-08-26 10:30:25 +02:00
Lucas Hoffmann
0a495d0be8
tests: Migrate legacy test 59.
2015-08-26 10:30:22 +02:00
Felipe Morales
45121a267f
defaults: set 'laststatus' to 2. #2876
2015-08-24 00:48:32 -04:00
Felipe Morales
be29de1fa2
defaults: set 'listchars' to "tab:> ,trail:-,nbsp:+". #2872
...
Re: https://github.com/neovim/neovim/issues/2676
2015-08-22 13:48:48 -04:00
Thiago de Arruda
105a72eabc
terminal: Fix use after free
...
Since close_cb may free the terminal structure, save the "wipe" flag before
calling it.
2015-08-22 01:01:14 -03:00
John Szakmeister
f9778052af
tests: fix the glob tests when building under a long path #3214
2015-08-21 23:58:39 -04:00
Thiago de Arruda
1beee0685d
eval: Protect job callbacks from being redefined
...
ref: #3188
2015-08-21 13:28:49 -03:00
Robin Allen
d5b5063622
Notify attached UIs whenever menus change
...
This adds a redraw notification "update_menu" which is sent whenever
Vim's menus are changed by the :menu command and friends.
2015-08-21 14:23:50 +01:00
Justin M. Keyes
8f09fa1a49
os/fs.c: remove os_file_is_readonly()
...
os_file_is_readonly() in its current form is equivalent to
!os_file_is_writable(). This does not appear to be a bug, because Vim's
use of check_file_readonly() (which we changed to os_file_is_readonly())
is equivalent to !os_file_is_writable() in every case.
os_file_is_readonly() also fails this test:
returns false if the file is non-read, non-write
A more useful form would define behavior under these cases:
- path is executable (but not writable)
- path is non-existent
- path is directory
But there is no reason for os_file_is_readonly() to exist, so remove it.
2015-08-17 01:15:04 -04:00
Justin M. Keyes
d5cd15e67f
test: more cases for os_file_is_readonly()
2015-08-17 01:14:13 -04:00
Justin M. Keyes
ad6b356119
test: cover os_file_is_readable()
2015-08-17 01:07:48 -04:00
Thiago de Arruda
a6e0d35d2d
queue: Implement a more flexible event queue
2015-08-13 08:46:21 -03:00
Thiago de Arruda
0d71354058
test: Make sure ENTER prompt is exited in clipboard_provider_spec
...
The test may hang without this.
2015-08-13 07:41:04 -03:00
Justin M. Keyes
d21690a66e
test: cover :grep
...
References #3156
2015-08-11 12:49:50 -04:00
Justin M. Keyes
5c1dc0fbe7
test: fix pending() invocations
...
AFAICT busted does not report pending() invocations without the 2nd
argument.
2015-08-09 22:33:28 -04:00
Justin M. Keyes
62c53c404b
test: move runtime/autoload/* to provider/
...
- Organize tests by logical function, not the literal impl location.
- Avoid deep nesting / hyper-hierarchy.
2015-08-09 22:33:28 -04:00
Justin M. Keyes
698482ec3e
test: python: report pending() if python{2,3} is missing
2015-08-09 22:33:28 -04:00
Marco Hinz
990c0350ab
vim-patch:7.4.773 #3066
...
Problem: 'langmap' is used in command-line mode when checking for mappings.
Solution: Do not use 'langmap' in command-line mode. (Larry Velazquez)
Original patch:
https://code.google.com/p/vim/source/detail?r=5b1eefbf9a532f32a66fa13abbd671488aaafd5c
2015-08-09 21:12:11 -04:00
Björn Linse
d4ebbaa91a
clipboard: support clipboard=unnamedplus,unnamed
2015-08-07 13:06:13 +02:00
Justin M. Keyes
5a19585865
test: cover msgpackparse() regression
2015-08-05 19:08:06 -04:00
Justin M. Keyes
9f350e615c
Merge pull request #3034 from ZyX-I/msgpack-eval
...
msgpack viml functions for dump/restore
2015-08-03 00:24:10 -04:00
ZyX
030f360312
functests: Use eval subdirectory in place of viml
2015-08-02 22:19:58 +03:00
ZyX
7fbefd585e
eval: Remove most of msgpack* functions limitations
2015-08-02 19:32:41 +03:00
ZyX
5a7135fa1c
eval: Add msgpackparse and msgpackdump functions
2015-08-02 19:32:41 +03:00