summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-08-29 12:33:17 +0100
committerw0rp <devw0rp@gmail.com>2020-08-29 12:33:17 +0100
commitdd9ad9b5be84bea7105a91bb7e15c308cfe2c57f (patch)
tree8598f9fd43789ef477110873245d9144a2390b65 /test
parent7d4ce4e6aa960a6052a16d90322566d6f4fddb7c (diff)
downloadale-dd9ad9b5be84bea7105a91bb7e15c308cfe2c57f.zip
#3319 - Try to modify buffers later for ALEFix
Diffstat (limited to 'test')
-rw-r--r--test/fix/test_ale_fix.vader13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fix/test_ale_fix.vader b/test/fix/test_ale_fix.vader
index e8a9dd7a..62643da2 100644
--- a/test/fix/test_ale_fix.vader
+++ b/test/fix/test_ale_fix.vader
@@ -727,6 +727,19 @@ Expect(There should be only two lines):
a
b
+Execute(ALEFix should modify a buffer that is not modifiable, if it becomes modifable later):
+ let g:ale_fixers.testft = ['RemoveLastLineOneArg']
+
+ set nomodifiable
+ ALEFix
+ call ale#test#FlushJobs()
+ set modifiable
+ call ale#fix#ApplyQueuedFixes(bufnr(''))
+
+Expect(There should be only two lines):
+ a
+ b
+
Execute(b:ale_fix_on_save = 1 should override g:ale_fix_on_save = 0):
let g:ale_fix_on_save = 0
let b:ale_fix_on_save = 1