Florian Bruhin
4c64619263
tests: Fix configdir None tests for UserStyleSheet.
2016-01-20 19:55:34 +01:00
Florian Bruhin
8a757c8603
Release v0.5.1.
2016-01-18 22:12:52 +01:00
Felix Van der Jeugt
7ad871fab1
Merge remote-tracking branch 'source/master'
2016-01-18 21:45:47 +01:00
Florian Bruhin
c8538bdbb8
Fix config validation for String types.
...
Fixes #1231 .
2016-01-18 07:29:15 +01:00
Felix Van der Jeugt
9a889c6866
extended tests to cover new file argument
2016-01-17 20:38:33 +01:00
Florian Bruhin
df03099468
Fix completion for String config type.
...
Since 2a705e2eb6
non-specialized config types are
String. However, String had an overloaded complete() which defaulted to
returning None.
Now we use the normal complete() which relies on valid_values if completions
isn't given instead.
Fixes #1223 .
2016-01-12 18:53:53 +01:00
Florian Bruhin
8bd4d3d24a
Release v0.5.0
2016-01-05 19:30:50 +01:00
Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Florian Bruhin
e6284ed5d4
tests: Improve some ugly test IDs.
2015-12-16 22:21:29 +01:00
Florian Bruhin
49be07eb18
Add config read in test_default_config.
...
For some reason this was failing on OS X/Travis otherwise?
2015-12-11 22:17:51 +01:00
Florian Bruhin
d267cbd44f
tests: Require qapp for test_old_config.
2015-12-11 18:16:46 +01:00
Florian Bruhin
202bf59edc
Add tests for renamed/deleted config options.
...
See #1171 .
2015-12-11 08:50:26 +01:00
Florian Bruhin
ec06247327
Add tests to check upgrades from old configs.
...
See #1171 .
2015-12-11 08:50:26 +01:00
Florian Bruhin
10dd1b50b9
Split ConfigManager.read from constructor.
2015-12-11 08:50:26 +01:00
Florian Bruhin
cf54fa1ef1
pylint: Remove some now useless suppressions.
2015-12-01 23:00:48 +01:00
Florian Bruhin
803398c49b
Use some more fixtures for older tests.
2015-12-01 22:40:58 +01:00
Florian Bruhin
150a83d8f4
pylint: Remove unneeded supressions.
2015-12-01 22:03:58 +01:00
Florian Bruhin
288bf1524e
Fix some unidiomatic comparisons.
2015-11-30 07:10:21 +01:00
Florian Bruhin
d286f637d6
tests: Set basedir to None, not ''.
...
Turns out setting basedir='' creates cache/ in cwd.
2015-11-29 01:23:28 +01:00
Florian Bruhin
6a46aea934
Fix tests for basedir logging.
...
f5febc4
broke various tests which called standarddir.init() without a valid
basedir.
2015-11-29 00:35:18 +01:00
Patric Schmitz
913aa209c6
remove BadMappingSubclass and rename MappingSubclass
2015-11-28 20:17:31 +01:00
Patric Schmitz
dbc6f63fc0
remove whitespace
2015-11-28 18:57:41 +01:00
Patric Schmitz
03ba38578e
set valid_values after __init__ consistently, move type validation out of class into pytest
2015-11-28 18:29:51 +01:00
Patric Schmitz
c14b52f916
initialize valid_values separately, not using base class __init__ parameter
2015-11-28 18:29:51 +01:00
Patric Schmitz
6f65397dfe
always set valid_values in __init__ instead of class scope variable
2015-11-28 18:29:51 +01:00
Florian Bruhin
416cfaf002
tests: Switch from pytest-capturelog to catchlog.
2015-11-11 19:57:03 +01:00
Florian Bruhin
6c20190473
Merge branch 'master' of https://github.com/forkbong/qutebrowser into forkbong-master
2015-11-04 07:12:32 +01:00
Florian Bruhin
702842c977
configtypes: Handle max. recursion depth for Regex.
2015-11-04 07:02:23 +01:00
Panagiotis Ktistakis
dc06787f83
Make key config migration for clearing downloads.
2015-11-04 01:01:27 +02:00
Florian Bruhin
bb5e5137cd
configtypes: Allow completions for String.
2015-10-25 21:18:06 +01:00
Florian Bruhin
f614e5b98a
Add none value for colors -> tabs.indicator.system.
2015-10-24 16:01:32 +02:00
Daniel
ef8a681fcc
Add TimestampTemplate config type
...
No more crash when 'completion->timestamp-format' is set to '%'.
Fixes #1039 .
2015-10-21 17:23:39 +02:00
Nathan Isom
ec3cafc293
resolve merge conflicts and merge branch scrollbar.
2015-10-18 11:42:56 -05:00
Nathan Isom
e92a7495c4
keep bg/fg test.
2015-10-18 10:41:15 -05:00
Nathan Isom
f1b9a3408f
Remove fontdict test, edit register stylesheet test to match new font result.
2015-10-17 19:23:48 -05:00
Nathan Isom
9b8b2130ef
remove deprecated test.
2015-10-16 10:59:02 -05:00
Nathan Isom
2a11adc8ac
initial replace pass.
2015-10-16 10:52:02 -05:00
Nathan Isom
27db1ad891
fix scrollbar not showing up error, change test_get_stylesheet a bit.
2015-10-16 09:56:31 -05:00
Florian Bruhin
de49e5f0a5
Use 'is None' to compare to None.
2015-10-04 17:05:24 +02:00
Florian Bruhin
7ff881c3e3
Merge branch 'incdec-setting' of https://github.com/Kingdread/qutebrowser into Kingdread-incdec-setting
2015-10-04 17:04:40 +02:00
Daniel
73ba3ddaee
Add all possible combinations to FlagList.complete
2015-10-02 18:53:03 +02:00
Florian Bruhin
7761dd5af4
configtypes: Disallow ValidValues without values.
2015-10-02 11:37:41 +02:00
Florian Bruhin
d6301beb2a
Improve configtypes.Regex tests and docs.
2015-10-01 23:24:27 +02:00
Florian Bruhin
16ac3baf2e
configtypes: Handle invalid escapes in regexes.
2015-10-01 23:11:48 +02:00
Daniel
4881d81444
Add new configtype: FlagList
...
This class contains validation code shared by ConfirmQuit and
URLSegmentList, that is it checks for duplicate values and compares
each value to valid_values.
2015-10-01 00:40:21 +02:00
Daniel
bc631d7d8b
Fix configtypes test coverage
2015-09-30 21:17:27 +02:00
Daniel
1bdb012b2c
Add a config option for navigate_incdec
...
Also known as Ctrl-A/Ctrl-X. You can now specify which parts of the URL
should be searched for numbers.
The setting is general->url-incdec-segments and it's a set with valid
values of 'host', 'path', 'query' and 'anchor'.
2015-09-30 19:18:00 +02:00
Florian Bruhin
5db4ed0ed1
Add fallback argument to ConfigManager.get.
...
This is needed for interpolation since this change in Python 3.4:
https://hg.python.org/cpython/rev/267422f7c927
This broke qutebrowser in Debian experimental when updating python from
3.4.3-8 to 3.4.3-9 as they pulled from hg.
Fixes #968 .
2015-09-29 08:22:33 +02:00
Florian Bruhin
4854ca42fd
Fix tests without DISPLAY.
2015-09-28 21:50:55 +02:00
Daniel
3e2985d776
Add tests for RegexEq
...
...also fix a small typo in RegexEq's comment.
2015-09-28 14:58:00 +02:00
Daniel
05bcddb6f9
Use RegexEq in configtypes tests
...
This prevents the tests from failing if the regex cache overflows,
since re.compile objects compare by identitiy instead of patterns.
2015-09-28 14:24:36 +02:00
Florian Bruhin
ab9c046d54
Adjust default keybinding to clear-keychain on Esc.
...
Fixes #917 .
2015-09-03 11:14:05 +02:00
Florian Bruhin
03f4d738ab
Rename klass fixture to klass_fixt.
...
See https://github.com/pytest-dev/pytest/issues/979 .
2015-08-31 07:42:53 +02:00
Florian Bruhin
1a1bc4b8a8
Fix lint.
2015-08-19 21:13:35 +02:00
Florian Bruhin
a79c139aa4
Revert "style: Check for QColor when setting in ColorDict."
...
This reverts commit 9b82fae6fb
.
2015-08-19 20:48:19 +02:00
Florian Bruhin
5a975d1b90
100% test coverage for config.style.
2015-08-19 20:43:06 +02:00
Florian Bruhin
2c5269acd6
Reorganize tests directory.
2015-08-18 20:19:02 +02:00