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
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)
https://github.com/vim/vim/commit/1f285eb49a709e00552f7bef7e74efff5ae79026
vim-patch:7.4.445
Problem: Clipboard may be cleared on startup.
Solution: Set clip_did_set_selection to -1 during startup. (Christian
Brabandt)
https://github.com/vim/vim/commit/1a19d37d90f037c09183ba68fdddf70ab8ee179a
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)
https://github.com/vim/vim/commit/af6a579263a688f30bfbbee72b28d08cc7e0f3d4
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
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
Justin M. Keyes
efa059c5a4
test: call scandir_next_with_dots() more than once
...
Also cosmetic reduction.
2015-08-01 23:33:54 -04:00
Felipe Morales
ea551044ea
Add the . and .. entries to glob()
...
os_scandir() and os_scandir_next() skip over those, because of the
unverlying libuv funcitons behaviour.
Fixes #2954
2015-08-01 23:16:17 -04:00
Omar Sandoval
f79025b9de
tui: Use underline cursor in Replace mode
...
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. 25ceadab37 ),
so this required some translation, but the logic is the same.
2015-07-26 23:45:41 -04:00
Omar Sandoval
fa48fc667a
api: Simplify UI API on mode change
...
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.
2015-07-26 23:38:35 -04:00
Björn Linse
7a6bf3f418
Add ui test for default title (with/without filename) #3091
2015-07-23 22:35:42 +02:00
Robin Allen
5ad619a847
menu: Fix :emenu mode detection #2992
...
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.
2015-07-22 10:13:49 -04:00
Lucas Hoffmann
6571c84d54
tests: Migrate legacy test 80. #2989
...
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 >
2015-07-21 19:56:15 -04:00
Björn Linse
8047570b70
clipboard: add tests for error fallback and middleclick paste
2015-07-20 20:24:28 -04:00