summaryrefslogtreecommitdiff
path: root/test/test_should_do_nothing_conditions.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-09-03 18:24:43 +0100
committerw0rp <devw0rp@gmail.com>2017-09-03 18:24:43 +0100
commitd482b8e3b70516c7da8aa9a8db97bc245e7ac44d (patch)
treea9b81d738cd86e396a70dbf5aba1d986d3f2bf9b /test/test_should_do_nothing_conditions.vader
parentf9b43a566c156efa28e0e5d5d4ecea76a19672dd (diff)
downloadale-d482b8e3b70516c7da8aa9a8db97bc245e7ac44d.zip
Fix #891 - Do not check ctrlp-funky windows
Diffstat (limited to 'test/test_should_do_nothing_conditions.vader')
-rw-r--r--test/test_should_do_nothing_conditions.vader12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_should_do_nothing_conditions.vader b/test/test_should_do_nothing_conditions.vader
new file mode 100644
index 00000000..4d6facf9
--- /dev/null
+++ b/test/test_should_do_nothing_conditions.vader
@@ -0,0 +1,12 @@
+Before:
+ Save &l:statusline
+
+After:
+ Restore
+
+Execute(ALE shouldn't do much of anything for ctrlp-funky buffers):
+ Assert !ale#ShouldDoNothing(bufnr('')), 'The preliminary check failed'
+
+ let &l:statusline = '%#CtrlPMode2# prt %*%#CtrlPMode1# line %* <mru>={%#CtrlPMode1# funky %*}=<fil> <-> %=%<%#CtrlPMode2# %{getcwd()} %*'
+
+ Assert ale#ShouldDoNothing(bufnr(''))