aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
| * | eval: Make sure `islocked('b:.changedtick')` does not error outZyX2017-02-23
| | | | | | | | | Port of vim-patch:8.0.0345
| * | eval: Specify more precise len for var_check_ro in get_lvalZyX2017-02-23
| | |
| * | functests: Add some more testsZyX2017-02-23
| | |
| * | buffer: Forbid unletting b:changedtickZyX2017-02-23
| | |
| * | eval: Refactor item_lockZyX2017-02-23
| | | | | | | | | If I am not mistaking, this commit should not change any functionality.
| * | eval: Make sure that b:changedtick may not be unlocked via :unlo b:varZyX2017-02-23
| | | | | | | | | It still may be unlocked by `:unlock b:.var`.
| * | functests: Add testsZyX2017-02-23
| | | | | | | | | Contains a number of FIXMEs.
| * | buffer: Bind b:changedtick to b:['changedtick'], remove special casesZyX2017-02-23
| | |
| * | api/buffer: Add nvim_buf_get_changedtick methodZyX2017-02-23
| | |
* | | Merge #6111 from ZyX-I/split-eval'/os-fileioJustin M. Keyes2017-02-27
|\ \ \ | | | | | | | | Refactor writefile() and create more tests for it
| * | | eval: Fix error messages from writefileZyX2017-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. When calling writefile(list, fname, []) do not show error message twice. 2. Do not allow file name to be overwritten for writefile([1], 2). 3. Do not show “Can’t open file with an empty name” error after error like “using Float as a String” when type of the second argument is not correct. 4. Do not give multiple error messages and still continue for code like `writefile(["test", [], [], [], "tset"])`. Note that to fix 4. ideally I need tv_check_str_or_nr which is currently present in two PRs: #6114 and #5119. I would want to avoid copying this function into a yet another PR. Ref vim/vim#1476.
| * | | eval: writefile: Give more adequate IO errors and do not call putc()ZyX2017-02-14
| | | |
* | | | test: screen_setup(): Detect spawn failures, usage errors.Justin M. Keyes2017-02-26
| | | |
* | | | test: screen_setup(): Support `cols` parameter.Justin M. Keyes2017-02-26
| | | |
* | | | test/window_split_tab_spec.lua: fixupJustin M. Keyes2017-02-26
| | | | | | | | | | | | | | | | | | | | Make the test work after the "follows cursor" changes. This "auto-resize" feature is going away soon, anyways.
* | | | terminal: Follow output only if cursor is at end.Justin M. Keyes2017-02-26
| | | | | | | | | | | | | | | | | | | | | | | | Closes #2257 Closes #2636 References #2683
* | | | terminal: 'scrollback'Justin M. Keyes2017-02-26
| | | | | | | | | | | | | | | | Closes #2637
* | | | terminal: Don't redraw the entire screen when resizing (#6167)Tommy Allen2017-02-26
| |/ / |/| |
* | | win: test: Fix closure jobs test on WindowsJames McCoy2017-02-23
| | |
* | | Merge remote-tracking branch 'origin/master' into lambdaJames McCoy2017-02-22
|\ \ \
| * \ \ Merge #6137 from justinmk/cmdline-ctrl-rJustin M. Keyes2017-02-19
| |\ \ \ | | | | | | | | | | cmdline: CTRL-R: Omit trailing ^M character
| | * | | cmdline: CTRL-R: Omit trailing <CR>.Justin M. Keyes2017-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "technically correct" interpretation is to execute the first line that is seen (and this is what happens on middle-click paste in Vim). ^M is only intended to "defuse" the newline, so the user can review it. The parent commit changed the behavior to insert <Space> between lines, but that's a higher-risk change: it is arguably possible that some user *wants* the literal ^M chars when e.g. assigning to a register: :let @a='<C-R>b' To avoid that risk, keep the old behavior and only omit the last ^M. This makes `yy:<C-R>0` nicer at no cost.
| | * | | cmdline: CTRL-R: <Space> instead of CR between lines.Justin M. Keyes2017-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ^M isn't any more "correct" than space: the "technically correct" interpretation is to execute the first line that is seen (and this is what happens on middle-click paste in Vim). ^M is only intended to defuse the newline, so that the user can review the command. We can do that with a space instead, and then the command can be executed without having to fix it up first.
| * | | | eval.c: has("unnamedplus"). (#6136)Kurt Bonatz2017-02-18
| |/ / / | | | | | | | | | | | | | | | | Return 1 for UNIX with a functioning clipboard provider. Closes #6103
| * | | Merge #6114 'Partial string handling refactoring'.Justin M. Keyes2017-02-17
| |\ \ \
| | * | | *: Partial string handling refactoringZyX2017-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
| * | | | ex_docmd.c: Allow unescaped spaces in :edit filename (#6119)Kurt Bonatz2017-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes :edit consistent on all platforms. Also affects :argedit, et al. Wild (tab) completion doesn't work, though. Closes #6010
* | | | | Allow lambdas to be used with jobs, timers and dictwatchers.Michael Ennen2017-02-14
|/ / / /
* / / / unittest: Filter out standard defines so that they do not spam stderr (#6113)Nikolai Aleksandrovich Pavlov2017-02-15
|/ / /
* | | ci: Make sure core* is the last component of pathZyX2017-02-14
| | |
* | | ci: Better core dump checkingZyX2017-02-14
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Do not exclude any directories from `find` search, remove dumps before tests instead. - Install `apport` on travis so that linux tests should produce core dumps (based on information from travis-ci/travis-ci#3754, not sure whether it still applies). - Check cores in lua so that one has an idea which test is failing exactly. Do this only 10% of time on linux because traversing the file system is slow. Unit tests are still not touched, though it is what `app` argument in `check_cores` is for. TODO? consider using `find`, it may be faster. Consider retiring `os.execute`, dealing with escaping is bad.
* | build: `oldtest` target: TEST_FILE, NVIM_PRG (#6098)Justin M. Keyes2017-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add support for TEST_FILE to the `oldtest` target, for consistency with the busted/lua tests. Caveat: with the busted/lua tests TEST_FILE takes a full path, whereas for `oldtest` it must be "test_foo.res". - Add support for NVIM_PRG, again so that all test-related targets are consistent. - Use consistent name for NVIM_PRG. But still need to support NVIM_PROG for QuickBuild CI. Note: The `oldtest` target is driven by the top-level Makefile, because it requires a TTY. CMake 3.2 added a USES_TERMINAL flag to add_custom_target(). But we support CMake 2.8... add_custom_target(oldtest COMMAND make clean COMMAND make NVIM_PRG=$<TARGET_FILE:nvim> $ENV{MAKEOVERRIDES} DEPENDS nvim WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/nvim/testdir" USES_TERMINAL true )
* | eval: Add id() function and make printf("%p") return something useful (#6095)Nikolai Aleksandrovich Pavlov2017-02-11
| |
* | test: executable(): AppVeyor: Ignore "sibling" failureJustin M. Keyes2017-02-04
| | | | | | | | | | This test sometimes fails on AppVeyor, but we still want to exercise the code path and get at least a "soft" notification in the pending list.
* | win: executable(): full path without extensionJustin M. Keyes2017-02-04
| | | | | | | | Absolute path is considered executable even *without* an extension.
* | vim-patch:8.0.0280Justin M. Keyes2017-02-04
| | | | | | | | | | | | | | | | | | | | patch 8.0.0280: problem setting multi-byte environment var on MS-Windows Problem: On MS-Windows setting an environment variable with multi-byte strings does not work well. Solution: Use wputenv when possible. (Taro Muraoka, Ken Takata) 7c23d1d9d9cc
* | test: helpers.clear(): Set common env vars only if not passed.Justin M. Keyes2017-02-04
| |
* | build: Do not force busted into front of $PATHJustin M. Keyes2017-02-04
| | | | | | | | | | | | | | | | | | This was a workaround from long ago, but it doesn't seem to be needed anymore. And it breaks the $PATH on the Windows build (AppVeyor CI). After this change python3 (and 2) is correctly detected on AppVeyor CI. References #5946
* | win: Append process dir to $PATHJustin M. Keyes2017-02-04
| | | | | | | | | | | | | | | | This allows executables to be found by :!, system(), and executable() if they live next to ("sibling" to) nvim.exe. This is what gvim on Windows does, and also matches the behavior of Win32 SearchPath(). https://github.com/vim/vim/blob/c4a249a736d40ec54794827ef95804c225d0e38f/src/os_win32.c#L354-L370
* | test: executable()Rui Abreu Ferreira2017-02-04
| |
* | test: Remove whitespace (avoid LF/CRLF discrepancy)Justin M. Keyes2017-02-04
| |
* | tests: Migrate legacy test 8. #4179Lucas Hoffmann2017-02-03
| | | | | | | | | | The test produces some "hit enter" prompts and error messages that had to be dealt with by `feed`ing CTRL-L to nvim.
* | Merge #2990 'tests: Migrate legacy test 69.'Justin M. Keyes2017-02-03
|\ \
| * | tests: Modernize migrated legacy test 69.Lucas Hoffmann2017-02-03
| | |
| * | tests: Migrate legacy test 69.Lucas Hoffmann2016-05-23
| | |
* | | Merge pull request #6050 from jamessan/fix-xclip-testsJames McCoy2017-02-03
|\ \ \ | | | | | | | | Fix xclip tests to cleanup on their own
| * | | test: Turn printargs_path into a functionJames McCoy2017-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When test/functional/eval/system_spec.lua is run on its own, helpers.os_name() was being called before a session had been created. This caused that describe block to fail. Turning printargs_path into a function delays the call of helpers.os_name() until the test is being run, which ensures a session is available.
| * | | test: Make xclip exit after one selection requestJames McCoy2017-02-02
| | | | | | | | | | | | | | | | Closes #4900
* | | | Merge #5975 from jamessan/execute-with-attrsJustin M. Keyes2017-02-03
|\ \ \ \ | |/ / / |/| | | execute: Correctly capture output with highlight attributes
| * | | test: execute() + :redirJustin M. Keyes2017-02-01
| | | |