Add window_title tests

This commit is contained in:
ZyX 2014-07-10 22:32:41 +04:00
parent f9af425054
commit 3ac75eeca6
1 changed files with 7 additions and 0 deletions

View File

@ -667,6 +667,13 @@ class TestVim(TestCase):
self.assertEqual(vim.file_type(pl=pl, segment_info=segment_info),
[{'divider_highlight_group': 'background:divider', 'contents': 'python'}])
def test_window_title(self):
pl = Pl()
segment_info = vim_module._get_segment_info()
self.assertEqual(vim.window_title(pl=pl, segment_info=segment_info), None)
with vim_module._with('wvars', quickfix_title='Abc'):
self.assertEqual(vim.window_title(pl=pl, segment_info=segment_info), 'Abc')
def test_line_percent(self):
pl = Pl()
segment_info = vim_module._get_segment_info()