summaryrefslogtreecommitdiff
path: root/test/test_completion.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_completion.vader')
-rw-r--r--test/test_completion.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_completion.vader b/test/test_completion.vader
index 8750872e..245f8db8 100644
--- a/test/test_completion.vader
+++ b/test/test_completion.vader
@@ -141,6 +141,14 @@ Execute(ale#completion#Show() should remember the completeopt setting and replac
AssertEqual 'menu', b:ale_old_completopt
AssertEqual 'menu,menuone,preview,noselect,noinsert', &l:completeopt
+Execute(ale#completion#OmniFunc() should also remember the completeopt setting and replace it):
+ let &l:completeopt = 'menu'
+
+ call ale#completion#OmniFunc(0, '')
+
+ AssertEqual 'menu', b:ale_old_completopt
+ AssertEqual 'menu,menuone,preview,noselect,noinsert', &l:completeopt
+
Execute(ale#completion#Show() should make the correct feedkeys() call):
call ale#completion#Show('Response', 'Parser')