qutebrowser/tests
Ryan Roden-Corrent 4f99af5876
Don't escape quotes in completion text.
Resolves the example case in #4199, but not the larger problem. We don't
need to escape quotes as we don't put the string in an attribute value.
From the docs at
https://docs.python.org/3/library/html.html#html.escape:

> If the optional flag quote is true, the characters (") and (') are also
> translated; this helps for inclusion in an HTML attribute value
> delimited by quotes, as in <a href="...">.

Escaping quotes means we end up with a literal &#x27; in the completion
view wherever there is a quote in the source text.

However, problem in #4199, where unexpected parts of the text are
highlighted, can also happen with '<', '>', and '&', which still must be
escaped.
2018-09-15 13:39:49 -04:00
..
end2end Fix lint and test 2018-09-04 23:46:34 +02:00
helpers Use a shared web_history fixture 2018-09-06 20:08:32 +02:00
manual Update some more references to old config options 2017-07-04 16:46:02 +02:00
unit Don't escape quotes in completion text. 2018-09-15 13:39:49 -04:00
conftest.py Turn off hypothesis deadline if on CI 2018-07-22 10:13:06 +02:00
test_conftest.py Update copyright years 2018-02-05 12:19:50 +01:00