summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReed Riley <john.reed.riley@gmail.com>2019-04-19 17:09:51 -0400
committerReed Riley <john.reed.riley@gmail.com>2019-04-19 23:10:55 -0400
commitc36f3e78e47ae3b83eba6b2ad7139ed4d8f7ed9b (patch)
treef8d329ff8ea20a7b926f5e72b3e7832db858bbca /test
parentfcc2c3ba71afa2a7965f3c1e9ec8c03381178180 (diff)
downloadale-c36f3e78e47ae3b83eba6b2ad7139ed4d8f7ed9b.zip
Add support for Vim's tagstack to ALEGoToDefinition
fixes 1236
Diffstat (limited to 'test')
-rw-r--r--test/test_go_to_definition.vader9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_go_to_definition.vader b/test/test_go_to_definition.vader
index 452b7692..3479d7b5 100644
--- a/test/test_go_to_definition.vader
+++ b/test/test_go_to_definition.vader
@@ -78,6 +78,15 @@ After:
Execute(Other messages for the tsserver handler should be ignored):
call ale#definition#HandleTSServerResponse(1, {'command': 'foo'})
+Execute(Tagstack should be incremented if supported):
+ if exists('*gettagstack') && exists('*settagstack')
+ let original_stack_depth = gettagstack().length
+ endif
+ call ale#definition#UpdateTagStack()
+ if exists('*gettagstack') && exists('*settagstack')
+ AssertEqual original_stack_depth + 1, gettagstack().length
+ endif
+
Execute(Failed definition responses should be handled correctly):
call ale#definition#SetMap({3: {'open_in': 'current-buffer'}})
call ale#definition#HandleTSServerResponse(