summaryrefslogtreecommitdiff
path: root/test/completion/test_completion_events.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-25 20:13:59 +0100
committerw0rp <devw0rp@gmail.com>2018-07-25 20:13:59 +0100
commit0012c78b024354686dffd693d135686378fecdc5 (patch)
tree6a45c304a409acf456652e9c22d3dee000c3dbac /test/completion/test_completion_events.vader
parent4ed35f7247b41ebd09f403257da54e059007851b (diff)
downloadale-0012c78b024354686dffd693d135686378fecdc5.zip
#1700 - Temporarily change completion options when the feedkeys() keybind is fired
Diffstat (limited to 'test/completion/test_completion_events.vader')
-rw-r--r--test/completion/test_completion_events.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/completion/test_completion_events.vader b/test/completion/test_completion_events.vader
index f3e05950..dfffab61 100644
--- a/test/completion/test_completion_events.vader
+++ b/test/completion/test_completion_events.vader
@@ -125,6 +125,8 @@ Execute(ale#completion#Show() should remember the omnifunc setting and replace i
let &l:omnifunc = 'FooBar'
call ale#completion#Show('Response', 'Parser')
+ AssertEqual [["\<Plug>(ale_show_completion_menu)"]], g:feedkeys_calls
+ call ale#completion#TriggerOmnicompleteMenu()
AssertEqual 'FooBar', b:ale_old_omnifunc
AssertEqual 'ale#completion#OmniFunc', &l:omnifunc
@@ -133,6 +135,8 @@ Execute(ale#completion#Show() should remember the completeopt setting and replac
let &l:completeopt = 'menu'
call ale#completion#Show('Response', 'Parser')
+ AssertEqual [["\<Plug>(ale_show_completion_menu)"]], g:feedkeys_calls
+ call ale#completion#TriggerOmnicompleteMenu()
AssertEqual 'menu', b:ale_old_completopt
AssertEqual 'menu,menuone,noselect,noinsert', &l:completeopt
@@ -141,6 +145,8 @@ Execute(ale#completion#Show() should set the preview option if it's set):
let &l:completeopt = 'menu,preview'
call ale#completion#Show('Response', 'Parser')
+ AssertEqual [["\<Plug>(ale_show_completion_menu)"]], g:feedkeys_calls
+ call ale#completion#TriggerOmnicompleteMenu()
AssertEqual 'menu,preview', b:ale_old_completopt
AssertEqual 'menu,menuone,preview,noselect,noinsert', &l:completeopt