diff options
author | Marvin Borner | 2020-03-16 23:33:42 +0100 |
---|---|---|
committer | Marvin Borner | 2020-03-16 23:33:42 +0100 |
commit | 0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 (patch) | |
tree | 719da1c7fe5dabb872fe9ff1582c39b55ccd488e /.config/nvim/plugged/vim-airline-themes/test/airline-themes.vader | |
parent | e5d38956336ab1be954bdbd12808c5f98f8bd925 (diff) |
Well I'm using Arch again
Diffstat (limited to '.config/nvim/plugged/vim-airline-themes/test/airline-themes.vader')
-rw-r--r-- | .config/nvim/plugged/vim-airline-themes/test/airline-themes.vader | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.config/nvim/plugged/vim-airline-themes/test/airline-themes.vader b/.config/nvim/plugged/vim-airline-themes/test/airline-themes.vader new file mode 100644 index 0000000..ba46da4 --- /dev/null +++ b/.config/nvim/plugged/vim-airline-themes/test/airline-themes.vader @@ -0,0 +1,38 @@ +# Make sure that theme and 5 basic modes don't throw an error +# Get list of all included themes +Execute (validate themes): + let themes = readfile('themes.txt') + call sort(themes) + + let err_proc = v:false + try + + for themePath in themes + + " Check all the basic modes and their modified counterparts + " This test only fails on exceptional cases + let theme = fnamemodify(themePath, ':t:r') + Log theme + execute('AirlineTheme ' . theme) + execute('source ' . themePath) + normal i + normal : + normal R + normal v + setlocal mod + normal i + normal : + normal R + normal v + setlocal nomod + + endfor + + catch + let err_proc = v:true + Log "Failed validation testing with exception:" + Log string(v:exception) + endtry + AirlineRefresh + + Assert !err_proc |