7 Commits

Author SHA1 Message Date
IK
eec6ea3875 Merge f083d765d8 into 81eca99486 2024-09-17 02:29:56 +09:00
IK
81eca99486 Merge pull request #2688 from vim-airline/fix-test
Some checks failed
CI / Test (v7.4) (push) Has been cancelled
CI / Test (v8.0.0000) (push) Has been cancelled
CI / Test (v8.1.0000) (push) Has been cancelled
CI / Test (v8.2.0000) (push) Has been cancelled
CI / Test (v8.2.1000) (push) Has been cancelled
CI / Test (v9.0.0000) (push) Has been cancelled
CI / Test (v9.1.0000) (push) Has been cancelled
reviewdog / runner / vint (push) Has been cancelled
chore: update test
2024-09-11 02:39:31 +09:00
IK
f706e7c486 Merge pull request #2689 from vim-airline/update-ci
chore: update ci
2024-09-11 02:38:35 +09:00
get-me-power
d7edaf8fd0 chore: update ci 2024-09-11 02:31:50 +09:00
get-me-power
3cb60641e7 chore: update test 2024-09-11 02:28:20 +09:00
get-me-power
f083d765d8 debug 2023-06-03 23:51:47 +09:00
get-me-power
45b6334faf test: add branch extensions test 2023-06-03 23:46:37 +09:00
3 changed files with 28 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ jobs:
strategy:
matrix:
vim:
- v9.1.0000
- v9.0.0000
- v8.2.1000
- v8.2.0000

View File

@@ -0,0 +1,17 @@
Describe branch.vim
Before
call mkdir("branch-test")
:lcd branch-test
!git init
End
It Match branch name main
Assert Equals(airline#extensions#branch#get_head(), "main")
End
After
call delete("branch-test", "rf")
:lcd ..
End
End

View File

@@ -4,14 +4,16 @@ Describe themes.vim
highlight clear Normal
End
It should extract correct colors
call airline#highlighter#reset_hlcache()
highlight Foo ctermfg=1 ctermbg=2
let colors = airline#themes#get_highlight('Foo')
Assert Equals(colors[0], 'NONE')
Assert Equals(colors[1], 'NONE')
Assert Equals(colors[2], '1')
Assert Equals(colors[3], '2')
It should extract correct colors with No termguicolors
if !exists("+termguicolors")
call airline#highlighter#reset_hlcache()
highlight Foo ctermfg=1 ctermbg=2
let colors = airline#themes#get_highlight('Foo')
Assert Equals(colors[0], 'NONE')
Assert Equals(colors[1], 'NONE')
Assert Equals(colors[2], '1')
Assert Equals(colors[3], '2')
endif
End
if exists("+termguicolors")