diff options
author | w0rp <w0rp@users.noreply.github.com> | 2016-10-25 16:02:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-25 16:02:47 +0100 |
commit | 60762d501872ec159c8851741f9435aa1bbf491b (patch) | |
tree | 7989e480c1a58b5a0456e370204eb054f57360ee /test/test_cleanup.vader | |
parent | 222d9e69083c7f068714901bd163ca18b8450de3 (diff) | |
parent | 73c9a1f96539481536de56fa2bd4c005c1af15ed (diff) | |
download | ale-60762d501872ec159c8851741f9435aa1bbf491b.zip |
Merge pull request #143 from w0rp/better-buffer-cleanup
Stop jobs when buffers close
Diffstat (limited to 'test/test_cleanup.vader')
-rw-r--r-- | test/test_cleanup.vader | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/test/test_cleanup.vader b/test/test_cleanup.vader index 4f6827f4..ec2b38aa 100644 --- a/test/test_cleanup.vader +++ b/test/test_cleanup.vader @@ -1,32 +1,15 @@ Before: let g:buffer = bufnr('%') - let g:ale_buffer_count_map = { - \ g:buffer: [1, 1], - \ 10347: [1, 1], - \} - let g:ale_buffer_loclist_map = { - \ g:buffer : [], - \ 10347: [], - \} - let g:ale_buffer_should_reset_map = { - \ g:buffer : 1, - \ 10347: 1, - \} - let g:ale_buffer_sign_dummy_map = { - \ g:buffer : 1, - \ 10347: 1, + + let g:ale_buffer_info = { + \ g:buffer : {}, + \ 10347: {}, \} After: unlet! g:buffer - let g:ale_buffer_count_map = {} - let g:ale_buffer_loclist_map = {} - let g:ale_buffer_should_reset_map = {} - let g:ale_buffer_sign_dummy_map = {} + let g:ale_buffer_info = {} Execute('ALE globals should be cleared when the buffer is closed.'): :q! - AssertEqual {10347: [1, 1]}, g:ale_buffer_count_map - AssertEqual {10347: []}, g:ale_buffer_loclist_map - AssertEqual {10347: 1}, g:ale_buffer_should_reset_map - AssertEqual {10347: 1}, g:ale_buffer_sign_dummy_map + AssertEqual {10347: {}}, g:ale_buffer_info |