From 96557f3972b7ad1f34327a368fc3e2c31615428c Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Wed, 5 Mar 2014 19:22:55 +0100 Subject: [PATCH] Added integration test for SuperTab. --- test.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test.py b/test.py index 2342168..3cba688 100755 --- a/test.py +++ b/test.py @@ -3380,6 +3380,26 @@ class Neocomplete_BugTest(_VimTest): vim_config.append('let g:neocomplete#enable_auto_delimiter = 1') vim_config.append('let g:neocomplete#enable_refresh_always = 1') # End: Plugin: Neocomplete #}}} +# Plugin: Supertab {{{# +class SuperTab_SimpleTest(_VimTest): + plugins = ["ervandew/supertab"] + snippets = ("long", "Hello", "", "w") + keys = ( "longtextlongtext\n" + + "longt" + EX + "\n" + # Should complete word + "long" + EX ) # Should expand + wanted = "longtextlongtext\nlongtextlongtext\nHello" + + def _before_test(self): + # Make sure that UltiSnips has the keymap + self.vim.send(":call UltiSnips#map_keys#MapKeys()\n") + + def _extra_options_post_init(self, vim_config): + assert EX == "\t" # Otherwise this test needs changing. + vim_config.append('let g:SuperTabDefaultCompletionType = ""') + vim_config.append('let g:SuperTabRetainCompletionDuration = "insert"') + vim_config.append('let g:SuperTabLongestHighlight = 1') + vim_config.append('let g:SuperTabCrMapping = 0') +# End: Plugin: Supertab #}}} ########################################################################### # END OF TEST #