qutebrowser/tests/unit
Ryan Roden-Corrent 66cc5f5ea4
Add support for more values in QtColor config type.
Recent changes in the completion highlighter mandate that
config.val.colors.completion.match be changed from a QssColor to a
QtColor. However, the latter accepts fewer formats. To avoid breaking
configs, this allows QtColors to be specified using all the same formats
as QssColors, excluding gradients.

I separated the QssColor and QtColor tests as the previous approach of
generating the tests made adding tests for QtColor more complicated.

While working on this I discovered that Qt's css parser is potentially
broken around parsing hsv percentages and filed
https://bugreports.qt.io/browse/QTBUG-70897.

For consistency, I made our parser similarly broken.

You can show the bug in qutebrowser right now by noting that the
following have different effects:

```
set colors.completion.odd.bg 'hsv(100%, 100%, 100%)'
set colors.completion.odd.bg 'hsv(358, 255, 255)'
```
2018-10-02 17:30:43 -04:00
..
browser Allow downloading from PDF.js 2018-09-10 13:15:39 +02:00
commands Wait until runner is finished in test_custom_env 2018-03-19 11:43:08 +01:00
completion Use QSyntaxHighlighter for completion. 2018-09-22 12:13:28 -04:00
config Add support for more values in QtColor config type. 2018-10-02 17:30:43 -04:00
javascript Handle UTF-8 byte order marks in Greasemonkey scripts 2018-09-12 23:54:32 +02:00
keyinput Recognize "Command"/"Cmd" in keybindings 2018-08-28 18:57:47 +02:00
mainwindow Use config_stub.val instead of config_stub.set_obj in tests 2018-09-02 14:42:47 +02:00
misc Clean up workaround for sqlite opening errors 2018-09-12 16:06:57 +02:00
scripts Update copyright years 2018-02-05 12:19:50 +01:00
utils Add utils.guess_mimetype 2018-09-09 18:35:09 +02:00
test_app.py Update copyright years 2018-02-05 12:19:50 +01:00