Commit Graph
3115 Commits
Author SHA1 Message Date
Lucas Hoffmann 86c5696c27 tests: Migrate legacy test 45. 2016-02-05 13:55:27 +09:00
Lucas Hoffmann ad83cd82e1 tests: Simplify migrated legacy test. 2016-02-04 19:25:07 +01:00
Lucas Hoffmann c1b0c45bee tests: Fix migrated legacy test.
The test involves argument and buffer numbers.  Therefore it was necessary to
use a custom testing session to ensure that the initial buffer corresponds to
an argument.
2016-02-04 19:23:47 +01:00
Lucas Hoffmann 153fe65c01 tests: Migrate legacy test command_count. 2016-02-04 19:20:59 +01:00
watiko 4cbe52b3a3 tests: Migrate legacy test textobjects 2016-02-03 21:56:22 +09:00
Justin M. Keyes 79a6983c0c ui: revert "gui_running" hack
Plugins (YCM, dispatch.vim) use gui_running to decide behavior; so do
some colorschemes. Up to now, nvim lied about gui_running for the
benefit of colorschemes and the detriment of all _other_ plugins that
check this condition. That's counterproductive: a user employs at most
_one_ colorscheme but may use many other plugins which expect the Vim
legacy semantics of gui_running.

Moreover, colorschemes usually don't _need_ to check gui_running: they
can instead set cterm{fg,bg} and gui{fg,bg} in the same :highlight call.

It is reasonable for users who want "true color" to modify their
colorscheme once (or request upstream to do so) in order to avoid
running into quirks in any other plugins.

Closes #2782
2016-02-03 01:21:59 -05:00
Marco Hinz 3d15cab29d Tests: fix according to lualint 2016-02-02 20:23:12 +01:00
ZyX 610b48c5b0 functests: Add string() function tests 2016-02-02 00:54:00 +03:00
ZyX b2ea083eeb eval: Return different values when dividing by zero
Fixes #3263
2016-02-02 00:54:00 +03:00
ZyX ad5cb87d7a eval: Add +tablineat feature 2016-02-01 21:40:46 +03:00
ZyX 3f314d40be functests: Improve tabline click tests 2016-02-01 21:40:46 +03:00
Jurica Bradaric 63a12e1e2d Remove unused variables from the test. 2016-02-01 08:54:13 +01:00
Jurica Bradaric 696adeb0f6 Use before_each instead of setup in the test. 2016-02-01 08:52:38 +01:00
Justin M. Keyes be1d5a61be Merge pull request #4129 from jbradaric/vim-7.4.745
vim-patch:7.4.{745,746,747,748}
2016-02-01 02:49:27 -05:00
Jurica Bradaric 02cf813eff Add test files for patch 7.4.771.
vim-patch:efcabd6892ad89a4585fb77aa94c3b1802b784ab
2016-02-01 08:48:36 +01:00
Jurica Bradaric 59ef994f8f vim-patch:7.4.741 #4121
Problem:    When using += with ":set" a trailing comma is not recognized.
            (Issue 365)
Solution:   Don't add a second comma. Add a test. (partly by Christian
            Brabandt)

https://github.com/vim/vim/commit/a7b7b1cef9b61700ba5076c1d889dce791392388
2016-02-01 02:28:51 -05:00
Justin M. Keyes 99067b7e56 Merge pull request #4113 from jbradaric/vim-7.4.709
vim-patch:7.4.709
2016-02-01 02:16:29 -05:00
watiko fa924f4604 tests: Migrate legacy test increment. 2016-02-01 03:47:09 +09:00
watiko a5f361e470 vim-patch:7.4.1027
Problem:    No support for binary numbers.
Solution:   Add "bin" to nrformats. (Jason Schulz)

https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
2016-02-01 03:47:08 +09:00
watiko 7fc996abf6 vim-patch:7.0212
Add missing test case (test59's test 8-8).

https://github.com/vim/vim/commit/8fd89f0fe79e3fe2e1b64a808d1c7caca333af89
https://github.com/vim/vim/commit/0b23879827f9a97af3f621f974f91fa7a6b8c45c
2016-02-01 03:44:46 +09:00
Jurica Bradaric f8ad215d25 vim-patch:7.4.745
Problem:    The entries added by matchaddpos() are returned by getmatches()
            but can't be set with setmatches(). (Lcd)
Solution:   Fix setmatches(). (Christian Brabandt)

https://github.com/vim/vim/commit/0fce4257727f9d75e488963b73e407d31dd46546
2016-01-30 12:16:32 +01:00
Justin M. Keyes 8f22031708 Merge pull request #4117 from watiko/vim-7.4.963
Vim 7.4.{639,753,949,963}
2016-01-29 20:41:03 -05:00
solawing fd14f64e26 tests: add always complete test 2016-01-29 22:03:30 +08:00
Justin M. Keyes 4c960c3d78 Merge #3077 'test_eval' 2016-01-29 00:23:53 -05:00
Justin M. Keyes 41f6a10a9b test: eval_spec.lua: minor cleanup 2016-01-29 00:20:47 -05:00
Justin M. Keyes aa17b4b4bc vim-patch:7.4.1137
Problem:    Illegal memory access when using :copen and :cclose.
Solution:   Avoid that curbuf is invalid. (suggestion by Justin M. Keyes)
            Add a test.

https://github.com/vim/vim/commit/62ef797496c6243d111c596a592a8ef8c1d1e710
2016-01-28 23:56:58 -05:00
Justin M. Keyes 73e83e8566 Merge pull request #4096 from justinmk/coverity125476
coverity/125476: RI: Null pointer dereference
2016-01-28 17:00:49 -05:00
Jurica Bradaric a31f9161b0 vim-patch:7.4.709
Problem:    ":tabmove" does not work as documented.
Solution:   Make it work consistently.  Update documentation and add tests.
            (Hirohito Higashi)

https://github.com/vim/vim/commit/40ce3a4e1f50badb75ca812e26557a9bc5fde8c6
2016-01-28 18:25:25 +01:00
watiko db51ff10f4 vim-patch:7.4.963
Problem:    test_listlbr_utf8 sometimes fails.
Solution:   Don't use a literal multibyte character but <C-V>uXXXX. Do not
            dump the screen highlighting. (Christian Brabandt, closes #518)

https://github.com/vim/vim/commit/1c57fe8b9450eb29c3e42a94527d4b7514f853e2
2016-01-28 20:52:41 +09:00
watiko 8721e1fe08 vim-patch:7.4.949
Problem:    When using 'colorcolumn' and there is a sign with a fullwidth
            character the highlighting is wrong. (Andrew Stewart)
Solution:   Only increment vcol when in the right state. (Christian Brabandt)

https://github.com/vim/vim/commit/32a214e78df0120f92fe049eab1385c60f0cdb0b
2016-01-28 20:52:41 +09:00
watiko 8771e84db7 vim-patch:7.4.753
Problem:    Appending in Visual mode with 'linebreak' set does not work
            properly.  Also when 'selection' is "exclusive". (Ingo Karkat)
Solution:   Recalculate virtual columns. (Christian Brabandt)

https://github.com/vim/vim/commit/74db34cc9162445e3d500ab2d61c5c19ce9af0ca
2016-01-28 20:52:41 +09:00
watiko d25a59f4d0 vim-patch:7.4.639
Problem:    Combination of linebreak and conceal doesn't work well.
Solution:   Fix the display problems. (Christian Brabandt)

https://github.com/vim/vim/commit/8fc6bc71266e342d339c851b3ee472357f917597
2016-01-28 20:52:40 +09:00
oni-link db77b7bc9e file_pat_to_reg_pat(): handle empty string. 2016-01-28 00:46:38 -05:00
Justin M. Keyes 894fcb778e glob2regpat(): handle empty string. 2016-01-27 22:19:50 -05:00
Lucas Hoffmann e78fc534dd tests: Migrate recent patches of legacy eval test.
As the work of this migration did take quite some time, some changes where
made in master after this branch was started.  These are ported to the new
test file.
2016-01-27 12:54:45 +01:00
Lucas Hoffmann 4b13cbc76d tests: Comments and typos after review.
Helped-by: Justin M. Keyes <justinkz@gmail.com>
2016-01-27 12:52:13 +01:00
Lucas Hoffmann fb3a6b925b tests: Resurrect unused part of legacy eval test.
The old test_eval.in file did a `:wq` on line 168.  The following 60 lines
where not used and there was no expected output for them in test_eval.ok.
This test code is now used in several test cases in the new test file.
2016-01-27 12:48:20 +01:00
Lucas Hoffmann c13dc2b762 tests: Split converted eval test into it() blocks. 2016-01-27 12:43:53 +01:00
Lucas Hoffmann 8cfef01193 tests: Debug converted eval test. 2016-01-27 12:40:41 +01:00
Lucas Hoffmann 3571fdac6f tests: Migrate legacy eval test. 2016-01-27 12:37:56 +01:00
Justin M. Keyes 765d394f18 vim-patch:ac809999
https://github.com/vim/vim/commit/ac80999985299dae4a9ef56dbf31fbdb35c04c08
2016-01-27 03:20:07 -05:00
Lucas Hoffmann 91a1680205 tests: Improve test 83 and add pending() call.
If nvim was compiled without `has("iconv")` this test is skipped.
2016-01-25 09:51:39 +01:00
Lucas Hoffmann 66f89ae321 tests: Migrate legacy test 83. 2016-01-25 09:39:59 +01:00
Justin Gassner 50c4c56967 vim-patch:dbcf19d
Add test files for patch 7.4.680.

https://github.com/vim/vim/commit/dbcf19dc498cb1561c9215a3f255e81cde0c0543
2016-01-23 15:33:31 +01:00
Justin M. Keyes bcbcf235f6 Merge pull request #4012 from jbradaric/vim-7.4.729
vim-patch:7.4.729
2016-01-21 02:35:15 -05:00
Justin M. Keyes 8887ccffa6 Merge pull request #4049 from watiko/vim-7.4.616
vim-patch:7.4.616
2016-01-21 02:05:40 -05:00
Justin M. Keyes 542c79f20d test: printf_spec: fix missing setup
before_each(clear) is required to init the test harness for single-test
runs, and also to ensure a known environment for each test.
2016-01-21 01:34:56 -05:00
Justin M. Keyes 9eb6a44564 Merge #3916 "Add support for binary numbers". 2016-01-21 01:34:36 -05:00
watiko 5fa082fa85 tests: Migrate legacy test 39. 2016-01-21 14:05:02 +09:00
Björn Linse 4618307a6c job control: add tests for 'jobpid' and 'detach' 2016-01-20 11:09:29 +01:00