aboutsummaryrefslogtreecommitdiff
path: root/.vim/bundle/vim-airline/t/themes.vim
diff options
context:
space:
mode:
authorxero <x@xero.nu>2014-07-14 13:23:05 -0400
committerxero <x@xero.nu>2014-07-14 13:23:05 -0400
commit56560fd597f94dfe6fe5fa79648398ab29d05775 (patch)
tree7e77d23be98b2df8ef847f49ee645085356305be /.vim/bundle/vim-airline/t/themes.vim
parent1434c859bcf94a0bbee88e72c8a01849d0356293 (diff)
downloaddotfiles_ascii-56560fd597f94dfe6fe5fa79648398ab29d05775.tar.xz
dotfiles_ascii-56560fd597f94dfe6fe5fa79648398ab29d05775.zip
updated repo to manage dotfiles via gnu stow, the symlink farm manager. happy birthday commit! :birthday: :sparkles:
Diffstat (limited to '.vim/bundle/vim-airline/t/themes.vim')
-rw-r--r--.vim/bundle/vim-airline/t/themes.vim68
1 files changed, 0 insertions, 68 deletions
diff --git a/.vim/bundle/vim-airline/t/themes.vim b/.vim/bundle/vim-airline/t/themes.vim
deleted file mode 100644
index d735229..0000000
--- a/.vim/bundle/vim-airline/t/themes.vim
+++ /dev/null
@@ -1,68 +0,0 @@
-describe 'themes'
- after
- highlight clear Foo
- highlight clear Normal
- end
-
- it 'should extract correct colors'
- highlight Foo ctermfg=1 ctermbg=2
- let colors = airline#themes#get_highlight('Foo')
- Expect colors[2] == '1'
- Expect colors[3] == '2'
- end
-
- it 'should extract from normal if colors unavailable'
- highlight Normal ctermfg=100 ctermbg=200
- highlight Foo ctermbg=2
- let colors = airline#themes#get_highlight('Foo')
- Expect colors[2] == '100'
- Expect colors[3] == '2'
- end
-
- it 'should flip target group if it is reversed'
- highlight Foo ctermbg=222 ctermfg=103 term=reverse
- let colors = airline#themes#get_highlight('Foo')
- Expect colors[2] == '222'
- Expect colors[3] == '103'
- end
-
- it 'should pass args through correctly'
- let hl = airline#themes#get_highlight('Foo', 'bold', 'italic')
- Expect hl == ['', '', 0, 1, 'bold,italic']
-
- let hl = airline#themes#get_highlight2(['Foo','bg'], ['Foo','fg'], 'italic', 'bold')
- Expect hl == ['', '', 1, 0, 'italic,bold']
- end
-
- it 'should generate color map with mirroring'
- let map = airline#themes#generate_color_map(
- \ [ 1, 1, 1, 1, '1' ],
- \ [ 2, 2, 2, 2, '2' ],
- \ [ 3, 3, 3, 3, '3' ],
- \ )
- Expect map.airline_a[0] == 1
- Expect map.airline_b[0] == 2
- Expect map.airline_c[0] == 3
- Expect map.airline_x[0] == 3
- Expect map.airline_y[0] == 2
- Expect map.airline_z[0] == 1
- end
-
- it 'should generate color map with full set of colors'
- let map = airline#themes#generate_color_map(
- \ [ 1, 1, 1, 1, '1' ],
- \ [ 2, 2, 2, 2, '2' ],
- \ [ 3, 3, 3, 3, '3' ],
- \ [ 4, 4, 4, 4, '4' ],
- \ [ 5, 5, 5, 5, '5' ],
- \ [ 6, 6, 6, 6, '6' ],
- \ )
- Expect map.airline_a[0] == 1
- Expect map.airline_b[0] == 2
- Expect map.airline_c[0] == 3
- Expect map.airline_x[0] == 4
- Expect map.airline_y[0] == 5
- Expect map.airline_z[0] == 6
- end
-end
-