aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_functions.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-09-25 22:02:06 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-09-26 10:14:50 -0400
commite22c15682a76b6c531fea5b6d8896ecbaf582253 (patch)
tree0925ffd408f3dc052dba61117791f5aeaca878d7 /src/nvim/testdir/test_functions.vim
parentc14d2399f6d98030fa1065d0c8bd732ad21deee6 (diff)
downloadrneovim-e22c15682a76b6c531fea5b6d8896ecbaf582253.tar.gz
rneovim-e22c15682a76b6c531fea5b6d8896ecbaf582253.tar.bz2
rneovim-e22c15682a76b6c531fea5b6d8896ecbaf582253.zip
test/old: enable passing tests
Some TODO tests are passing now. test_override('ALL', 1) clears previous overrides so it's safe to comment out and execute the test. Replace test_feedinput() with nvim_input(). Replace test_setmouse with nvim_input_mouse(). Note that test_setmouse is 1-based and nvim_input_mouse is 0-based.
Diffstat (limited to 'src/nvim/testdir/test_functions.vim')
-rw-r--r--src/nvim/testdir/test_functions.vim14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim
index c29e0410a9..8fa70a5313 100644
--- a/src/nvim/testdir/test_functions.vim
+++ b/src/nvim/testdir/test_functions.vim
@@ -1222,16 +1222,16 @@ func Test_reg_executing_and_recording()
endfunc
func Test_getchar()
- throw 'skipped: Nvim does not support test_setmouse()'
call feedkeys('a', '')
call assert_equal(char2nr('a'), getchar())
- call test_setmouse(1, 3)
- let v:mouse_win = 9
- let v:mouse_winid = 9
- let v:mouse_lnum = 9
- let v:mouse_col = 9
- call feedkeys("\<S-LeftMouse>", '')
+ " call test_setmouse(1, 3)
+ " let v:mouse_win = 9
+ " let v:mouse_winid = 9
+ " let v:mouse_lnum = 9
+ " let v:mouse_col = 9
+ " call feedkeys("\<S-LeftMouse>", '')
+ call nvim_input_mouse('left', 'press', 'S', 0, 0, 2)
call assert_equal("\<S-LeftMouse>", getchar())
call assert_equal(1, v:mouse_win)
call assert_equal(win_getid(1), v:mouse_winid)