Florian Bruhin
62b00e5ff6
utils.rfc6266: Test for invalid ISO-8859-1 and duplicate params.
2014-08-14 13:29:06 +02:00
Florian Bruhin
532f739e26
tests: Fix rfc6266 testcase.
2014-08-14 13:29:06 +02:00
Florian Bruhin
e159990363
utils.rfc6266: Initial implementation.
2014-08-14 13:29:06 +02:00
Florian Bruhin
48e81b34d0
http: remove change_content_type.
...
We're probably not going to need it.
2014-08-12 21:16:33 +02:00
Florian Bruhin
cdd7457aee
utils.http: Return [None, None] in parse_content_type.
2014-08-12 21:12:13 +02:00
Florian Bruhin
5b915186d7
Add a 'smart' option for ignore-case.
2014-08-12 17:00:18 +02:00
Florian Bruhin
5b3abfa5dd
tests: Disable logging properly.
2014-08-12 16:28:32 +02:00
Florian Bruhin
7be3976890
tests: Add tests for tests.utils.http
2014-08-12 09:13:03 +02:00
Florian Bruhin
cf3fa25ef4
tests.utils.http: Add __init__.py
2014-08-12 09:04:26 +02:00
Florian Bruhin
157f5b211f
tests: Adjust FakeNetworkReply to work with all headers.
2014-08-12 09:03:38 +02:00
Florian Bruhin
c86e252a9b
Change tests to use is_url instead of _is_url_naive.
2014-08-12 07:09:40 +02:00
Florian Bruhin
be2604cacd
Add a new qutebrowser.utils.http module
2014-08-12 07:00:04 +02:00
Florian Bruhin
4ff9804f2c
Fix lint
2014-08-07 14:47:39 +02:00
Florian Bruhin
837b2b386e
utils.debug: Add a broken qflags_key.
2014-08-07 14:41:39 +02:00
Florian Bruhin
5c50640a68
test_debug: Improve tests for qenum_key.
2014-08-07 14:40:34 +02:00
Florian Bruhin
b8ad04bbe7
test_conftypes: Fix lint.
2014-08-07 07:56:59 +02:00
Florian Bruhin
8756d9e644
test_conftypes: Test float point size correctly.
2014-08-07 07:56:47 +02:00
Florian Bruhin
ef603090c8
test_conftypes: Activate test for QtFont.
2014-08-07 07:39:36 +02:00
Florian Bruhin
956f6ef5e6
test_conftypes: Use qenum_key for Font.__repr__
2014-08-07 07:35:25 +02:00
Florian Bruhin
2546c871c8
utils.debug: Improve qenum_key.
2014-08-07 07:35:05 +02:00
Florian Bruhin
19b80c1e90
test_conftypes: Adjust docstring.
2014-08-07 07:34:46 +02:00
Florian Bruhin
fef5a9944f
conftypes: Use namedtuple for font descriptions.
2014-08-07 07:31:41 +02:00
Florian Bruhin
c7ee655750
Use pylint to check modelines and fix them.
2014-08-06 23:51:44 +02:00
Florian Bruhin
7818366f0a
Fix lint
2014-08-05 23:23:15 +02:00
Florian Bruhin
f5064c6295
test: Use unittest's subTest.
...
https://docs.python.org/3.4/library/unittest.html#distinguishing-test-iterations-using-subtests
2014-08-05 22:15:12 +02:00
Florian Bruhin
4d051bea73
test_conftypes: Fix lint
2014-08-05 21:16:30 +02:00
Florian Bruhin
263ee37685
test_conftype: More tests.
2014-08-05 21:08:12 +02:00
Florian Bruhin
ac6defaa7f
test_conftypes: Cleanups.
2014-08-05 21:08:01 +02:00
Florian Bruhin
2a34366d2c
test: Remove unneeded custom __eq__ methods.
2014-08-05 21:07:37 +02:00
Florian Bruhin
3b93f6121b
Add more unittypes tests.
2014-08-05 18:02:52 +02:00
Florian Bruhin
8d07ec2235
test_conftypes: Add (broken) Font tests.
2014-08-05 17:08:16 +02:00
Florian Bruhin
ec1b31a61c
test_conftypes: Add more tests.
2014-08-05 15:01:29 +02:00
Florian Bruhin
963fb40961
conftypes: Various bugfixes/cleanups/tests.
2014-08-05 14:16:15 +02:00
Florian Bruhin
a117cf0405
test_conftypes: Add more tests.
2014-08-05 13:06:03 +02:00
Florian Bruhin
8fdeab32c5
Add first tests for conftypes.
2014-08-05 07:27:29 +02:00
Florian Bruhin
ee1b136807
Clean up pylint/noqa comments.
2014-08-04 03:47:09 +02:00
Florian Bruhin
8ce779261f
Parse Content-Disposition headers more relaxed.
...
Before, we got an unhandled ValueError if there were multiple spaces in a
filename.
Instead of ignoring such a header altogether, we now add relaxed=True which
still tries to get the filename in this situation (and with a semicolon at the
line end).
Because the parser is also more relaxed in that second case, we mark a test as
expected failure.
2014-07-29 22:36:00 +02:00
Florian Bruhin
860ef75abc
Fix lint
2014-07-28 21:09:49 +02:00
Florian Bruhin
8d80ce2628
Switch to python 3.4 enums.
...
Our home-brewn enum wasn't really liked by pylint (many no-member errors), so
instead of adding some workaround, we just use the python 3.4 enum instead.
This however also means we need to depend on Python 3.4 and not 3.3. Maybe we
should use enum34 on Python < 3.3.
2014-07-28 20:41:42 +02:00
Florian Bruhin
e0bd89b762
Add an {url} variable for commands.
...
Note this also means we don't support :spawn running in a shell anymore, as
{url} is evaluated earlier. However this should be fine, as there's no really
important use case for that anyways, and shell escaping on Windows is rather
unmaintainable.
2014-07-28 01:40:36 +02:00
Florian Bruhin
2d3575f6d1
Remove tab close buttons
2014-07-16 13:04:08 +02:00
Florian Bruhin
81ff622291
Improve highlight_color tests.
2014-07-16 13:04:08 +02:00
Florian Bruhin
b47d53953b
Add a highlight_color util function.
2014-07-16 13:04:08 +02:00
Florian Bruhin
20e8c464e6
Check for QtValueErrors in interpolate_color tests.
2014-07-16 13:04:08 +02:00
Florian Bruhin
ca74fa28ac
Use a nicer Color() class for tests.
2014-07-16 13:04:08 +02:00
Florian Bruhin
d5c8e73b14
Use same focus code for insertmode/editor
2014-07-16 06:58:01 +02:00
Florian Bruhin
117755863d
Fix lint
2014-07-04 07:41:03 +02:00
Florian Bruhin
37ed9deecf
Add tests for key_to_string and keyevent_to_string.
2014-07-04 07:35:33 +02:00
Florian Bruhin
539325db90
Move fake_keyevent to test.helpers
2014-07-04 07:35:04 +02:00
Florian Bruhin
ea84ce7acf
Force keybindings to lower case
2014-07-03 07:46:14 +02:00