ZyX
117661e186
Add tests for visual_range
2014-08-05 22:49:53 +04:00
ZyX
50703f1cef
Fix unicode/bytes handling for python-3
2014-08-04 00:07:30 +04:00
ZyX
74a3c9a0ca
Add file_scheme segment
...
Fixes #207
2014-08-03 23:58:34 +04:00
ZyX
6cf0c485fa
Add single_tab segment
2014-08-03 12:53:53 +04:00
ZyX
85f252652e
Add tabnr segment
2014-08-03 12:53:53 +04:00
ZyX
1907708e98
Add support for has_key(gettabwinvar()) in vim test module
2014-08-03 12:53:16 +04:00
ZyX
b99ad3904e
Remove some __nonzero__ methods in tests/vim.py
...
Just __len__ is good enough here
2014-08-03 12:53:15 +04:00
ZyX
ff91ff7f92
Update tests to work with new functionality
...
Still no tests for new functionality.
2014-08-03 12:53:15 +04:00
ZyX
9e8c115eea
Add trailing whitespace segment
...
Note: by default this segment is disabled. Until #923 it may only be enabled by
copying the whole file and changing "enabled" to "true". After #923 it may be
enabled by having `~/.config/powerline/themes/vim/default.json` with the
following contents:
{
"segment_data": {
"trailing_whitespace": {
"display": true
}
}
}
Fixes #388
2014-08-02 18:39:16 +04:00
ZyX
128921454f
Correct _construct_result for Python-3
2014-07-10 23:24:58 +04:00
ZyX
a92d72b5d7
Respect the fact that vim.eval in Vim returns str instances
2014-07-10 22:54:27 +04:00
ZyX
f9af425054
Add missing winnr key to segments_dictionary
2014-07-10 22:33:10 +04:00
ZyX
e436bdbbfa
Remove failing _index, use (self.number - 1) instead
2014-07-10 22:33:10 +04:00
ZyX
3f8c8c9426
Prefix _Windows.{append,insert,pop} methods with underscore
...
There are no such methods in Vim.
2014-07-10 22:32:59 +04:00
ZyX
0ab80742c4
Add _with('wvars')
2014-07-10 22:21:29 +04:00
ZyX
a3e29a6cd6
Get rid of lots of NotImplementedError’s in travis log
2014-07-10 22:12:08 +04:00
ZyX
6f6c1fb90c
Add tests
2014-06-25 20:05:24 +04:00
ZyX
c3b4654bfb
Fix flake8 complaints
2014-03-13 20:41:54 +04:00
ZyX
e7820efe56
Make powerline work with non-utf filenames
...
Fixes #281
2014-01-26 21:01:19 +04:00
EinfachToll
10cd7b78f0
More test cases for position segment
2014-01-23 09:23:53 +01:00
EinfachToll
90132fe386
Small fixes for new position segment
...
- use vim_funcs
- use a dictionary instead of a tuple for translation strings
2014-01-21 15:48:05 +01:00
EinfachToll
7aa978fdba
New fixed segment showing position of current view
...
Solves #539
Fixed version of #540 and #579
Works now for split windows and wrapped lines.
2014-01-15 10:32:04 +01:00
ZyX
73d7b0db08
Add functional tests for plugin themes
2014-01-11 11:51:58 +04:00
Kim Silkebækken
74d4ee9669
Update tests
...
Unit tests are not run on external segments. When external segments are
moved out of the core repo the extra test code won't be needed.
2013-08-20 16:48:54 +02:00
Kim Silkebækken
ab6140136d
Add visual_range segment
...
Returns a value similar to `showcmd`.
TODO: Make proper test case.
2013-08-06 10:57:04 +02:00
ZyX
987376aecb
Fix tests
2013-06-22 19:14:07 +04:00
ZyX
9080a34ee8
Fix problems with merging vim.Dictionary
...
Also add tests
Fixes #516
2013-05-23 18:36:51 +04:00
ZyX
962a1b6fc2
Fix tests
2013-05-19 13:17:59 +04:00
ZyX
f10729f637
Add some new features to tests/vim.py
2013-05-19 13:17:58 +04:00
ZyX
ebd122d4ac
Unfinished attempt to adapt tests to new code
2013-05-19 13:17:58 +04:00
Kim Silkebækken
02eee6f54e
Merge remote-tracking branch 'zyx-i/virtcol-current-gradient' into develop
...
Conflicts:
tests/vim.py
2013-04-20 16:57:37 +02:00
ZyX
cce79fda0e
Add support for getbufvar('%') and &textwidth option to vim emulation
2013-04-13 19:37:23 +04:00
ZyX
2d036c0de8
Fix indentation of dictionaries
2013-04-13 19:35:25 +04:00
ZyX
5534b26bfe
Forbid querying vim from non-main threads in tests
...
Currently tests nothing or almost nothing.
2013-04-06 17:16:55 +04:00
ZyX
1351207462
Some fixes for flake8
2013-03-24 19:59:56 +04:00
ZyX
b517df774b
Fix bytes handling on python3
...
Fixes #356
2013-03-24 05:45:52 +04:00
ZyX
f547e8b85f
Some fixes for flake8
2013-03-17 21:23:15 +04:00
ZyX
c237e66958
Make file_size segment output buffer size
2013-03-15 19:31:08 +04:00
ZyX
6f3703e312
Improve ambiwidth handling, readd additional_escapes
...
Fixes #307
2013-03-12 13:11:59 +01:00
Kim Silkebækken
111eaa27e8
Combine vim modelines and Python encoding declarations
...
Ref #314
2013-03-11 10:40:09 +01:00
Kim Silkebækken
6748701fcb
Add vim modelines to all Python files
...
Added with `sed -i '2i# vim:fenc=utf-8:noet' `find -name '*.py'`` and
fixed in a couple of files without the UTF-8 encoding on top.
Ref #314
2013-03-11 08:11:25 +01:00
ZyX
aa0a8bf76d
Make tests support python2.6
...
Old unittest is not working for unknown reason, using unittest2 instead
2013-03-03 21:03:40 +01:00
ZyX
0a05b2961a
Add support for with: statement to tests.vim
...
Also made everything use new vim_module._with where possible
2013-03-03 21:03:34 +01:00
ZyX
c429d9eeb2
Omit using sys.modules if possible
...
Does not work though: still TypeError due to some global in multiproccessing
that got None
2013-03-03 21:03:34 +01:00
ZyX
584755765b
Start adding tests
...
Tests are temporary disabled on all branches except tests (does not really work
though, needs travis.yml in all branches).
2013-03-03 21:03:19 +01:00