diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-19 21:40:22 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-19 22:05:26 +0800 |
commit | b7c86e24f7cc16e642b82a3a157fec06ddc41e51 (patch) | |
tree | 0fb427f4eef7c583c29f9637e425a785f1ccc31c /test/functional/legacy/filechanged_spec.lua | |
parent | efebf30784951e88657e5c9362f374725a056a71 (diff) | |
download | rneovim-b7c86e24f7cc16e642b82a3a157fec06ddc41e51.tar.gz rneovim-b7c86e24f7cc16e642b82a3a157fec06ddc41e51.tar.bz2 rneovim-b7c86e24f7cc16e642b82a3a157fec06ddc41e51.zip |
vim-patch:8.2.0982: insufficient testing for reading/writing files
Problem: Insufficient testing for reading/writing files.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#6257)
Add "ui_delay" to test_override() and use it for the CTRL-O test.
https://github.com/vim/vim/commit/b340baed9f7fc1c19a0742e2214d54982190c15e
Omit test_override().
Reorder test_writefile.vim to match Vim.
Diffstat (limited to 'test/functional/legacy/filechanged_spec.lua')
-rw-r--r-- | test/functional/legacy/filechanged_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/legacy/filechanged_spec.lua b/test/functional/legacy/filechanged_spec.lua index ecb861098c..1f23528d61 100644 --- a/test/functional/legacy/filechanged_spec.lua +++ b/test/functional/legacy/filechanged_spec.lua @@ -67,6 +67,15 @@ describe('file changed dialog', function() call assert_equal(1, line('$')) call assert_equal('new line', getline(1)) + " File created after starting to edit it + call delete('Xchanged_d') + new Xchanged_d + call writefile(['one'], 'Xchanged_d') + call nvim_input('L') + checktime Xchanged_d + call assert_equal(['one'], getline(1, '$')) + close! + bwipe! call delete('Xchanged_d') endfunc |